mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix explicit working dir by "-workdir" argument.
Regression was introduced in ff84962148
.
Fixes #4123.
This commit is contained in:
parent
320105f201
commit
a032f24d58
1 changed files with 6 additions and 1 deletions
|
@ -320,7 +320,12 @@ namespace Logs {
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
cForceWorkingDir(cExeDir());
|
cForceWorkingDir(cExeDir());
|
||||||
#else // _DEBUG
|
#else // _DEBUG
|
||||||
cForceWorkingDir(psAppDataPath());
|
if (!cWorkingDir().isEmpty()) {
|
||||||
|
// This value must come only from the "-workdir" argument.
|
||||||
|
cForceWorkingDir(cWorkingDir());
|
||||||
|
} else {
|
||||||
|
cForceWorkingDir(psAppDataPath());
|
||||||
|
}
|
||||||
#endif // !_DEBUG
|
#endif // !_DEBUG
|
||||||
workingDirChosen = true;
|
workingDirChosen = true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue