2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-03 16:15:13 +00:00

Replaced observable in Window::Notifications::System with rpl.

This commit is contained in:
23rd
2021-05-25 16:51:59 +03:00
parent 2c50d3d87b
commit aad38c2809
7 changed files with 38 additions and 23 deletions

View File

@@ -756,13 +756,13 @@ void MainWindow::toggleDisplayNotifyFromTray() {
}
account().session().saveSettings();
using Change = Window::Notifications::ChangeType;
auto &changes = Core::App().notifications().settingsChanged();
changes.notify(Change::DesktopEnabled);
auto &notifications = Core::App().notifications();
notifications.notifySettingsChanged(Change::DesktopEnabled);
if (soundNotifyChanged) {
changes.notify(Change::SoundEnabled);
notifications.notifySettingsChanged(Change::SoundEnabled);
}
if (flashBounceNotifyChanged) {
changes.notify(Change::FlashBounceEnabled);
notifications.notifySettingsChanged(Change::FlashBounceEnabled);
}
}