2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +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

@@ -73,9 +73,10 @@ std::unique_ptr<Manager> Create(System *system) {
Manager::Manager(System *system)
: Notifications::Manager(system)
, _inputCheckTimer([=] { checkLastInput(); }) {
subscribe(system->settingsChanged(), [this](ChangeType change) {
system->settingsChanged(
) | rpl::start_with_next([=](ChangeType change) {
settingsChanged(change);
});
}, system->lifetime());
}
Manager::QueuedNotification::QueuedNotification(