Add dismiss notification guard on Linux

This commit is contained in:
Kevin Sawicki 2016-10-28 11:24:47 -07:00
parent 0a5f7171d4
commit 7cb8c1fdb9

View file

@ -146,6 +146,11 @@ void LibnotifyNotification::Show(const base::string16& title,
}
void LibnotifyNotification::Dismiss() {
if (!notification_) {
Destroy();
return;
}
GError* error = nullptr;
libnotify_loader_.notify_notification_close(notification_, &error);
if (error) {