From ad7366994a10f61c7ac99f78c5d9ce2ea841f8e4 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 9 Dec 2020 11:01:16 +0100 Subject: [PATCH] Simplify notify() --- src/ui/notifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/notifier.c b/src/ui/notifier.c index 352351f9..02f7edfe 100644 --- a/src/ui/notifier.c +++ b/src/ui/notifier.c @@ -204,11 +204,11 @@ notify(const char* const message, int timeout, const char* const category) if (notify_is_initted()) { log_debug("Reinitialising libnotify"); notify_uninit(); - notify_init("Profanity"); } else { log_debug("Initialising libnotify"); - notify_init("Profanity"); } + notify_init("Profanity"); + if (notify_is_initted()) { NotifyNotification* notification; notification = notify_notification_new("Profanity", message, NULL);