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
|
_readOldMtpData(false, context); // needed further in _readMtpData
|
||||||
applyReadContext(std::move(context));
|
applyReadContext(std::move(context));
|
||||||
|
|
||||||
if (!ApplyDefaultNightMode()) {
|
_settingsRewriteNeeded = true;
|
||||||
writeSettings();
|
ApplyDefaultNightMode();
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LOG(("App Info: reading settings..."));
|
LOG(("App Info: reading settings..."));
|
||||||
|
@ -1072,6 +1071,7 @@ bool ApplyDefaultNightMode() {
|
||||||
|| _themeKeyLegacy) {
|
|| _themeKeyLegacy) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Core::App().startSettingsAndBackground();
|
||||||
Window::Theme::ToggleNightMode();
|
Window::Theme::ToggleNightMode();
|
||||||
Window::Theme::KeepApplied();
|
Window::Theme::KeepApplied();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue