Fix saving tray "Toggle notifications" on relaunch.

Fixes https://bugs.telegram.org/c/9509
This commit is contained in:
John Preston 2021-09-22 14:02:01 +04:00
parent eaa4c5e5b1
commit cf76933352

View file

@ -779,7 +779,7 @@ void MainWindow::toggleDisplayNotifyFromTray() {
settings.setRememberedFlashBounceNotifyFromTray(false);
}
}
account().session().saveSettings();
Core::App().saveSettingsDelayed();
using Change = Window::Notifications::ChangeType;
auto &notifications = Core::App().notifications();
notifications.notifySettingsChanged(Change::DesktopEnabled);