refactor: extract notification sending

This commit is contained in:
Stevan Freeborn
2026-07-28 09:32:31 -05:00
parent 19a3d0927e
commit dc1b08095c
+14
View File
@@ -0,0 +1,14 @@
use notify_rust::Notification;
pub fn send_desktop_notification(title: &str, body: &str) {
let title = title.to_string();
let body = body.to_string();
std::thread::spawn(move || {
let _ = Notification::new()
.summary(&title)
.body(&body)
.appname("termato")
.show();
});
}