1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Simplify notify()

This commit is contained in:
Michael Vetter 2020-12-09 11:01:16 +01:00
parent 606c1e51e6
commit ad7366994a

View File

@ -204,11 +204,11 @@ notify(const char* const message, int timeout, const char* const category)
if (notify_is_initted()) { if (notify_is_initted()) {
log_debug("Reinitialising libnotify"); log_debug("Reinitialising libnotify");
notify_uninit(); notify_uninit();
notify_init("Profanity");
} else { } else {
log_debug("Initialising libnotify"); log_debug("Initialising libnotify");
notify_init("Profanity");
} }
notify_init("Profanity");
if (notify_is_initted()) { if (notify_is_initted()) {
NotifyNotification* notification; NotifyNotification* notification;
notification = notify_notification_new("Profanity", message, NULL); notification = notify_notification_new("Profanity", message, NULL);