Add dismiss notification guard on Linux
This commit is contained in:
parent
0a5f7171d4
commit
7cb8c1fdb9
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue