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:
@@ -153,9 +153,10 @@ GifsListWidget::GifsListWidget(
|
||||
refreshSavedGifs();
|
||||
}, lifetime());
|
||||
|
||||
subscribe(controller->session().downloaderTaskFinished(), [this] {
|
||||
controller->session().downloaderTaskFinished(
|
||||
) | rpl::start_with_next([=] {
|
||||
update();
|
||||
});
|
||||
}, lifetime());
|
||||
|
||||
subscribe(controller->gifPauseLevelChanged(), [=] {
|
||||
if (!controller->isGifPausedAtLeastFor(
|
||||
|
Reference in New Issue
Block a user