mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix crash in session destruction.
Also use rpl::event_stream for downloaderTaskFinished.
This commit is contained in:
@@ -132,7 +132,10 @@ InnerWidget::InnerWidget(
|
||||
});
|
||||
_cancelSearchFromUser->hide();
|
||||
|
||||
subscribe(session().downloaderTaskFinished(), [=] { update(); });
|
||||
session().downloaderTaskFinished(
|
||||
) | rpl::start_with_next([=] {
|
||||
update();
|
||||
}, lifetime());
|
||||
|
||||
subscribe(Core::App().notifications().settingsChanged(), [=](
|
||||
Window::Notifications::ChangeType change) {
|
||||
|
Reference in New Issue
Block a user