diff options
Diffstat (limited to '')
| -rw-r--r-- | src/notification.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/notification.rs b/src/notification.rs index df9c622..2c8d80f 100644 --- a/src/notification.rs +++ b/src/notification.rs | |||
| @@ -45,3 +45,11 @@ pub fn notify_error(context: &str) { | |||
| 45 | .appname("RSPlayer") | 45 | .appname("RSPlayer") |
| 46 | .show(); | 46 | .show(); |
| 47 | } | 47 | } |
| 48 | |||
| 49 | pub fn notify(summary: &str, body: &str) { | ||
| 50 | let _ = notify_rust::Notification::new() | ||
| 51 | .summary(summary) | ||
| 52 | .body(body) | ||
| 53 | .appname("RSPlayer") | ||
| 54 | .show(); | ||
| 55 | } | ||
