mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Version 2.2: Fix default-night mode.
This commit is contained in:
parent
e5434ea491
commit
fe639078a6
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue