about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-12-09 11:01:16 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-12-09 11:01:16 +0100
commitad7366994a10f61c7ac99f78c5d9ce2ea841f8e4 (patch)
treed64d599d7d13c8f98138ad1eb3a981a412672710 /src/ui
parent606c1e51e688cb111b9837579a35460508324b63 (diff)
downloadprofani-tty-ad7366994a10f61c7ac99f78c5d9ce2ea841f8e4.tar.gz
Simplify notify()
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/notifier.c4
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);
t.com> 2009-12-27 23:41:04 +0100 test case for keyapi.Wrapper' href='/akspecs/ranger/commit/test/tc_keyapi.py?id=a666f32b959416d062ac38645dc27f20686d881b'>a666f32b ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45