mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
Make sure notification object exists
This commit is contained in:
parent
f7d23844db
commit
1f5a764cf5
|
@ -17,8 +17,11 @@ void NotificationsUninit()
|
|||
void NotificationsNotify(const char *pTitle, const char *pMessage)
|
||||
{
|
||||
NotifyNotification *pNotif = notify_notification_new(pTitle, pMessage, "ddnet");
|
||||
if(pNotif)
|
||||
{
|
||||
notify_notification_show(pNotif, NULL);
|
||||
g_object_unref(G_OBJECT(pNotif));
|
||||
}
|
||||
}
|
||||
#else
|
||||
void NotificationsInit()
|
||||
|
|
Loading…
Reference in a new issue