1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00: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()) {
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);