Show notification summary

This commit is contained in:
Ian Douglas Scott 2021-09-09 08:47:35 -07:00
parent efcb3c5aec
commit cc9961c634
2 changed files with 27 additions and 9 deletions

View file

@ -135,8 +135,9 @@ impl TimeButton {
fn handle_notification(&self, notification: &Notification) {
println!("{:?}", notification);
let popover = &self.inner().notification_popover;
popover.set_body(&notification.body);
popover.popup();
self.inner()
.notification_popover
.set_notification(notification);
self.inner().notification_popover.popup();
}
}