Do not incorrectly/unnecssarily stop timer

This commit is contained in:
Ian Douglas Scott 2021-09-24 10:17:38 -07:00
parent c4c5f1d618
commit 58e3850766

View file

@ -41,7 +41,6 @@ impl ObjectImpl for NotificationPopoverInner {
obj.inner().notifications.invoke_action(id, "default");
}
obj.popdown();
obj.stop_timer();
}));
});
..add_controller(&cascade! {
@ -83,7 +82,6 @@ impl NotificationPopover {
notifications.connect_notification_closed(clone!(@weak obj => move |id| {
if obj.id() == Some(id) {
obj.popdown();
obj.stop_timer();
}
}));
@ -118,6 +116,7 @@ impl NotificationPopover {
1,
clone!(@weak self as self_ => @default-return Continue(false), move || {
self_.popdown();
*self_.inner().source.borrow_mut() = None;
Continue(false)
}),
);