fix: don't allow portable builds on macOS

This commit is contained in:
Sefa Eyeoglu
2022-03-23 14:38:58 +01:00
parent 90d4acd1a1
commit 6ed130fc16
2 changed files with 6 additions and 2 deletions

View File

@ -363,10 +363,12 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
}
#endif
#ifndef Q_OS_MACOS
if (QFile::exists(FS::PathCombine(m_rootPath, "portable.txt"))) {
dataPath = m_rootPath;
adjustedBy = "Portable data path";
}
#endif
}
if (!FS::ensureFolderPathExists(dataPath))