Show notification summary
This commit is contained in:
parent
efcb3c5aec
commit
cc9961c634
2 changed files with 27 additions and 9 deletions
|
|
@ -135,8 +135,9 @@ impl TimeButton {
|
|||
fn handle_notification(&self, notification: &Notification) {
|
||||
println!("{:?}", notification);
|
||||
|
||||
let popover = &self.inner().notification_popover;
|
||||
popover.set_body(¬ification.body);
|
||||
popover.popup();
|
||||
self.inner()
|
||||
.notification_popover
|
||||
.set_notification(notification);
|
||||
self.inner().notification_popover.popup();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue