2024-08-02 22:56:03 +01:00
|
|
|
//
|
2024-08-03 12:53:59 +01:00
|
|
|
use crate::alerts::{messages::NotifyUser, short_message};
|
2024-08-02 22:56:03 +01:00
|
|
|
|
|
|
|
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");
|
|
|
|
}
|
|
|
|
}
|