Version 2.2: Fix default-night mode.

This commit is contained in:
John Preston 2020-07-26 16:55:04 +04:00
parent e5434ea491
commit fe639078a6
1 changed files with 3 additions and 3 deletions

View File

@ -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;