From 43562db0804338f2d55dff13439f1165f8dd9d3f Mon Sep 17 00:00:00 2001 From: salmonik Date: Sat, 16 May 2026 12:47:43 +0200 Subject: first public release. --- src/notification.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/notification.rs') 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) { .appname("RSPlayer") .show(); } + +pub fn notify(summary: &str, body: &str) { + let _ = notify_rust::Notification::new() + .summary(summary) + .body(body) + .appname("RSPlayer") + .show(); +} -- cgit v1.2.3