mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Replace cDebug() with Logs::DebugEnabled().
This commit is contained in:
@@ -215,7 +215,7 @@ void Launcher::processArguments() {
|
||||
}
|
||||
|
||||
gTestMode = parseResult.contains("-testmode");
|
||||
gDebug = parseResult.contains("-debug");
|
||||
Logs::SetDebugEnabled(parseResult.contains("-debug"));
|
||||
gManyInstance = parseResult.contains("-many");
|
||||
gKeyFile = parseResult.value("-key", QStringList()).join(QString());
|
||||
gLaunchMode = parseResult.contains("-autostart") ? LaunchModeAutoStart
|
||||
|
@@ -1756,7 +1756,7 @@ void Updater::start(bool forceWait) {
|
||||
sendRequest = true;
|
||||
}
|
||||
}
|
||||
if (cManyInstance() && !cDebug()) {
|
||||
if (cManyInstance() && !Logs::DebugEnabled()) {
|
||||
// Only main instance is updating.
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user