Store notifications
This commit is contained in:
parent
2396ebbaa9
commit
17df83e611
3 changed files with 46 additions and 22 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue