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