2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 23:55:12 +00:00

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