Store notifications

This commit is contained in:
Ian Douglas Scott 2021-09-08 15:18:13 -07:00
parent 2396ebbaa9
commit 17df83e611
3 changed files with 46 additions and 22 deletions

View file

@ -132,6 +132,16 @@ impl PanelWindow {
app.add_window(&obj);
let notifications = app.notifications().clone();
app.notifications()
.connect_notification_recieved(clone!(@weak obj => move |id| {
let notification = notifications.get(id);
println!(
"{:?}",
notification
);
}));
obj
}