Version 2.2: Fix default-night mode.
This commit is contained in:
parent
e5434ea491
commit
fe639078a6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue