Consolidate cForceWorkingDir(psAppDataPath())
This commit is contained in:
parent
3d769a6dce
commit
92a41c881d
|
@ -360,37 +360,16 @@ void start() {
|
||||||
workingDirChosen = true;
|
workingDirChosen = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
#ifdef Q_OS_UNIX
|
|
||||||
|
|
||||||
if (!cWorkingDir().isEmpty()) {
|
if (!cWorkingDir().isEmpty()) {
|
||||||
// This value must come from TelegramForcePortable
|
// This value must come from TelegramForcePortable
|
||||||
workingDirChosen = true;
|
workingDirChosen = true;
|
||||||
|
#if (!defined Q_OS_WIN && !defined _DEBUG) || defined Q_OS_WINRT || defined OS_WIN_STORE || defined OS_MAC_STORE
|
||||||
} else {
|
} else {
|
||||||
#if !defined _DEBUG || defined OS_MAC_STORE
|
|
||||||
cForceWorkingDir(psAppDataPath());
|
cForceWorkingDir(psAppDataPath());
|
||||||
workingDirChosen = true;
|
workingDirChosen = true;
|
||||||
#endif // !_DEBUG || OS_MAC_STORE
|
#endif // (!Q_OS_WIN && !_DEBUG) || Q_OS_WINRT || OS_WIN_STORE || OS_MAC_STORE
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined Q_OS_WINRT // Q_OS_UNIX
|
|
||||||
|
|
||||||
cForceWorkingDir(psAppDataPath());
|
|
||||||
workingDirChosen = true;
|
|
||||||
|
|
||||||
#elif defined OS_WIN_STORE // Q_OS_UNIX || Q_OS_WINRT
|
|
||||||
|
|
||||||
cForceWorkingDir(psAppDataPath());
|
|
||||||
workingDirChosen = true;
|
|
||||||
|
|
||||||
#elif defined Q_OS_WIN
|
|
||||||
|
|
||||||
if (!cWorkingDir().isEmpty()) {
|
|
||||||
// This value must come from TelegramForcePortable
|
|
||||||
workingDirChosen = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // Q_OS_UNIX || Q_OS_WINRT || OS_WIN_STORE
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LogsData = new LogsDataFields();
|
LogsData = new LogsDataFields();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user