summaryrefslogtreecommitdiffstats
path: root/ui/src/components/notifications.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components/notifications.rs')
-rw-r--r--ui/src/components/notifications.rs18
1 files changed, 8 insertions, 10 deletions
diff --git a/ui/src/components/notifications.rs b/ui/src/components/notifications.rs
index 92f64e52..7c394281 100644
--- a/ui/src/components/notifications.rs
+++ b/ui/src/components/notifications.rs
@@ -9,20 +9,18 @@ use super::*;
pub struct XDGNotifications {}
impl Component for XDGNotifications {
- fn draw(&mut self, _grid: &mut CellBuffer, _area: Area, _context: &mut Context) {
-
- }
+ fn draw(&mut self, _grid: &mut CellBuffer, _area: Area, _context: &mut Context) {}
fn process_event(&mut self, event: &UIEvent, _context: &mut Context) {
match event.event_type {
UIEventType::Notification(ref t) => {
- notify_Notification::new()
- .summary("Refresh Event")
- .body(t)
- .icon("dialog-information")
- .show().unwrap();
- },
+ notify_Notification::new()
+ .summary("Refresh Event")
+ .body(t)
+ .icon("dialog-information")
+ .show()
+ .unwrap();
+ }
_ => {}
}
}
}
-