diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-12-09 11:01:16 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-12-09 11:01:16 +0100 |
commit | ad7366994a10f61c7ac99f78c5d9ce2ea841f8e4 (patch) | |
tree | d64d599d7d13c8f98138ad1eb3a981a412672710 /src/ui | |
parent | 606c1e51e688cb111b9837579a35460508324b63 (diff) | |
download | profani-tty-ad7366994a10f61c7ac99f78c5d9ce2ea841f8e4.tar.gz |
Simplify notify()
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/notifier.c | 4 |
1 files 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); |