mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Version 2.2: Fix default-night mode.
This commit is contained in:
@@ -363,9 +363,8 @@ void start() {
|
||||
_readOldMtpData(false, context); // needed further in _readMtpData
|
||||
applyReadContext(std::move(context));
|
||||
|
||||
if (!ApplyDefaultNightMode()) {
|
||||
writeSettings();
|
||||
}
|
||||
_settingsRewriteNeeded = true;
|
||||
ApplyDefaultNightMode();
|
||||
return;
|
||||
}
|
||||
LOG(("App Info: reading settings..."));
|
||||
@@ -1072,6 +1071,7 @@ bool ApplyDefaultNightMode() {
|
||||
|| _themeKeyLegacy) {
|
||||
return false;
|
||||
}
|
||||
Core::App().startSettingsAndBackground();
|
||||
Window::Theme::ToggleNightMode();
|
||||
Window::Theme::KeepApplied();
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user