mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +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
|
||||
cForceWorkingDir(cExeDir());
|
||||
#else // _DEBUG
|
||||
cForceWorkingDir(psAppDataPath());
|
||||
if (!cWorkingDir().isEmpty()) {
|
||||
// This value must come only from the "-workdir" argument.
|
||||
cForceWorkingDir(cWorkingDir());
|
||||
} else {
|
||||
cForceWorkingDir(psAppDataPath());
|
||||
}
|
||||
#endif // !_DEBUG
|
||||
workingDirChosen = true;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue