From cf7693335213676ca09c0efec11dd73eb7918a61 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 22 Sep 2021 14:02:01 +0400 Subject: [PATCH] Fix saving tray "Toggle notifications" on relaunch. Fixes https://bugs.telegram.org/c/9509 --- Telegram/SourceFiles/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/mainwindow.cpp b/Telegram/SourceFiles/mainwindow.cpp index 8e5d3c95b..6171fdd8e 100644 --- a/Telegram/SourceFiles/mainwindow.cpp +++ b/Telegram/SourceFiles/mainwindow.cpp @@ -779,7 +779,7 @@ void MainWindow::toggleDisplayNotifyFromTray() { settings.setRememberedFlashBounceNotifyFromTray(false); } } - account().session().saveSettings(); + Core::App().saveSettingsDelayed(); using Change = Window::Notifications::ChangeType; auto ¬ifications = Core::App().notifications(); notifications.notifySettingsChanged(Change::DesktopEnabled);