Close notification popover on "notification-closed"
This commit is contained in:
parent
e9055e74d9
commit
ec6a0ff366
2 changed files with 10 additions and 1 deletions
|
|
@ -63,6 +63,11 @@ impl NotificationPopover {
|
|||
notifications.connect_notification_recieved(clone!(@weak obj => move |notification| {
|
||||
obj.handle_notification(¬ification);
|
||||
}));
|
||||
notifications.connect_notification_closed(clone!(@weak obj => move |id| {
|
||||
if obj.inner().notification_widget.id() == Some(id) {
|
||||
obj.popdown();
|
||||
}
|
||||
}));
|
||||
|
||||
obj
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue