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:
@@ -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 ¬ifications = 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user