forked from kemitix/git-next
9 lines
300 B
Rust
9 lines
300 B
Rust
//
|
|
use crate::alerts::{messages::NotifyUser, short_message};
|
|
|
|
pub(super) fn send_desktop_notification(msg: &NotifyUser) {
|
|
let message = short_message(msg);
|
|
if let Err(err) = notifica::notify("git-next", &message) {
|
|
tracing::warn!(?err, "failed to send desktop notification");
|
|
}
|
|
}
|