2024-08-02 22:56:03 +01:00
|
|
|
//
|
2024-08-03 22:31:17 +01:00
|
|
|
use crate::alerts::short_message;
|
|
|
|
use git_next_core::git::UserNotification;
|
2024-08-02 22:56:03 +01:00
|
|
|
|
2024-08-03 22:31:17 +01:00
|
|
|
pub(super) fn send_desktop_notification(user_notification: &UserNotification) {
|
|
|
|
let message = short_message(user_notification);
|
2024-08-02 22:56:03 +01:00
|
|
|
if let Err(err) = notifica::notify("git-next", &message) {
|
|
|
|
tracing::warn!(?err, "failed to send desktop notification");
|
|
|
|
}
|
|
|
|
}
|