Merge branch 'feature/new-gui' of github.com:amnezia-vpn/amnezia-client into feature/new-gui

This commit is contained in:
vladimir.kuznetsov 2023-08-31 15:45:29 +05:00
commit 8cf8c3c122
5 changed files with 33 additions and 15 deletions

View file

@ -1,4 +1,5 @@
#include "fileUtilites.h"
#include "platforms/ios/MobileUtils.h"
#include <QDesktopServices>
#include <QStandardPaths>
@ -38,6 +39,13 @@ void FileUtilites::saveFile(QString fileName, const QString &data)
return;
#endif
#ifdef Q_OS_IOS
QStringList filesToSend;
filesToSend.append(fileUrl.toString());
MobileUtils::shareText(filesToSend);
return;
#endif
QFileInfo fi(fileUrl.toLocalFile());
QDesktopServices::openUrl(fi.absoluteDir().absolutePath());
}