diff options
| author | salmonik <raisersoft@proton.me> | 2026-05-16 12:47:43 +0200 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-05-16 12:47:43 +0200 |
| commit | 43562db0804338f2d55dff13439f1165f8dd9d3f (patch) | |
| tree | 134248a95024815194d152de56f9b3f70d24d096 /src/notification.rs | |
| parent | Add scrobbling support (Last.fm + ListenBrainz) and rsp settings reload (diff) | |
| download | rsplayer-43562db0804338f2d55dff13439f1165f8dd9d3f.tar.gz rsplayer-43562db0804338f2d55dff13439f1165f8dd9d3f.zip | |
first public release.
Diffstat (limited to 'src/notification.rs')
| -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 | } | ||
