|
@@ -28,6 +28,8 @@
|
|
|
|
|
|
#ifdef VCMI_IOS
|
|
|
#include "ios/selectdirectory.h"
|
|
|
+
|
|
|
+#include "iOS_utils.h"
|
|
|
#elif defined(VCMI_ANDROID)
|
|
|
#include <QAndroidJniObject>
|
|
|
#include <QtAndroid>
|
|
@@ -228,9 +230,12 @@ void FirstLaunchView::heroesDataMissing()
|
|
|
|
|
|
#ifdef VCMI_ANDROID
|
|
|
// selecting directory with ACTION_OPEN_DOCUMENT_TREE is available only since API level 21
|
|
|
- bool canUseDataCopy = QtAndroid::androidSdkVersion() >= 21;
|
|
|
+ const bool canUseDataCopy = QtAndroid::androidSdkVersion() >= 21;
|
|
|
+#elif defined(VCMI_IOS)
|
|
|
+ // selecting directory through UIDocumentPickerViewController is available only since iOS 13
|
|
|
+ const bool canUseDataCopy = iOS_utils::isOsVersionAtLeast(13);
|
|
|
#else
|
|
|
- bool canUseDataCopy = true;
|
|
|
+ const bool canUseDataCopy = true;
|
|
|
#endif
|
|
|
|
|
|
ui->labelDataCopyTitle->setVisible(canUseDataCopy);
|