mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-21 02:01:03 +07:00
added a wait for the file dialog to close when sharing ios files
This commit is contained in:
@@ -46,7 +46,9 @@ void SystemController::saveFile(QString fileName, const QString &data)
|
||||
#ifdef Q_OS_IOS
|
||||
QStringList filesToSend;
|
||||
filesToSend.append(fileUrl.toString());
|
||||
MobileUtils::shareText(filesToSend);
|
||||
MobileUtils mobileUtils;
|
||||
// todo check if save successful
|
||||
mobileUtils.shareText(filesToSend);
|
||||
return;
|
||||
#else
|
||||
QFileInfo fi(fileName);
|
||||
@@ -62,6 +64,9 @@ QString SystemController::getFileName(const QString &acceptLabel, const QString
|
||||
|
||||
MobileUtils mobileUtils;
|
||||
fileName = mobileUtils.openFile();
|
||||
if (fileName.isEmpty()) {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
CFURLRef url = CFURLCreateWithFileSystemPath(
|
||||
kCFAllocatorDefault,
|
||||
|
||||
Reference in New Issue
Block a user