diff options
Diffstat (limited to 'mumd/src/notify.rs')
| -rw-r--r-- | mumd/src/notify.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mumd/src/notify.rs b/mumd/src/notify.rs index 0739c58..ee387cc 100644 --- a/mumd/src/notify.rs +++ b/mumd/src/notify.rs @@ -1,9 +1,9 @@ pub fn init() { - #[cfg(feature = "libnotify")] + #[cfg(feature = "notifications")] libnotify::init("mumd").unwrap(); } -#[cfg(feature = "libnotify")] +#[cfg(feature = "notifications")] pub fn send(msg: String) -> Option<bool> { match libnotify::Notification::new("mumd", Some(msg.as_str()), None).show() { Ok(_) => Some(true), @@ -14,7 +14,7 @@ pub fn send(msg: String) -> Option<bool> { } } -#[cfg(not(feature = "libnotify"))] +#[cfg(not(feature = "notifications"))] pub fn send(_: String) -> Option<bool> { None } |
