mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Detect when -workdir value is not really custom
This commit is contained in:
@@ -363,7 +363,6 @@ void start() {
|
||||
|
||||
if (!cWorkingDir().isEmpty()) {
|
||||
// This value must come from TelegramForcePortable
|
||||
// or from the "-workdir" command line argument.
|
||||
cForceWorkingDir(cWorkingDir());
|
||||
workingDirChosen = true;
|
||||
} else {
|
||||
@@ -391,7 +390,6 @@ void start() {
|
||||
|
||||
if (!cWorkingDir().isEmpty()) {
|
||||
// This value must come from TelegramForcePortable
|
||||
// or from the "-workdir" command line argument.
|
||||
cForceWorkingDir(cWorkingDir());
|
||||
workingDirChosen = true;
|
||||
}
|
||||
@@ -408,6 +406,11 @@ void start() {
|
||||
}
|
||||
}
|
||||
|
||||
if (launcher.validateCustomWorkingDir()) {
|
||||
delete LogsData;
|
||||
LogsData = new LogsDataFields();
|
||||
}
|
||||
|
||||
// WinRT build requires the working dir to stay the same for plugin loading.
|
||||
#ifndef Q_OS_WINRT
|
||||
QDir().setCurrent(cWorkingDir());
|
||||
|
Reference in New Issue
Block a user