mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix explicit working dir by "-workdir" in Windows.
Regression was introduced in ff84962148
.
Fixes #4129.
This commit is contained in:
@@ -344,6 +344,13 @@ namespace Logs {
|
||||
cForceWorkingDir(psAppDataPath());
|
||||
#endif // !_DEBUG
|
||||
workingDirChosen = true;
|
||||
#elif defined Q_OS_WIN
|
||||
} else {
|
||||
if (!cWorkingDir().isEmpty()) {
|
||||
// This value must come only from the "-workdir" argument.
|
||||
cForceWorkingDir(cWorkingDir());
|
||||
workingDirChosen = true;
|
||||
}
|
||||
#endif // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT || OS_WIN_STORE
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user