Fix path choosing for Windows Store version.

This commit is contained in:
John Preston 2020-04-07 11:57:01 +04:00
parent 13d22947df
commit f50c50a152
1 changed files with 6 additions and 3 deletions

View File

@ -341,9 +341,10 @@ void start(not_null<Core::Launcher*> launcher) {
if (cAlphaVersion()) {
workingDirChosen = true;
} else {
#if defined Q_OS_MAC || defined Q_OS_LINUX
} else {
if (!cWorkingDir().isEmpty()) {
// This value must come from TelegramForcePortable
// or from the "-workdir" command line argument.
@ -362,11 +363,12 @@ void start(not_null<Core::Launcher*> launcher) {
#endif // Q_OS_LINUX && !_DEBUG
#elif defined Q_OS_WINRT // Q_OS_MAC || Q_OS_LINUX
} else {
cForceWorkingDir(psAppDataPath());
workingDirChosen = true;
#elif defined OS_WIN_STORE // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT
#ifdef _DEBUG
cForceWorkingDir(cExeDir());
#else // _DEBUG
@ -375,7 +377,7 @@ void start(not_null<Core::Launcher*> launcher) {
workingDirChosen = true;
#elif defined Q_OS_WIN
} else {
if (!cWorkingDir().isEmpty()) {
// This value must come from TelegramForcePortable
// or from the "-workdir" command line argument.
@ -384,6 +386,7 @@ void start(not_null<Core::Launcher*> launcher) {
}
#endif // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT || OS_WIN_STORE
}
LogsData = new LogsDataFields();