mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add dismiss notification guard on Linux
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user