Merge pull request #10943 from electron/ensure-contents-clicked

Ensure the click event is only dispatched on ContentsClicked activation type
This commit is contained in:
Samuel Attard 2017-10-28 12:35:07 +13:00 committed by GitHub
commit 5c6d418b59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@
notification->NotificationReplied([notif.response.string UTF8String]); notification->NotificationReplied([notif.response.string UTF8String]);
} else if (notif.activationType == NSUserNotificationActivationTypeActionButtonClicked) { } else if (notif.activationType == NSUserNotificationActivationTypeActionButtonClicked) {
notification->NotificationButtonClicked(); notification->NotificationButtonClicked();
} else { } else if (notif.activationType == NSUserNotificationActivationTypeContentsClicked) {
notification->NotificationClicked(); notification->NotificationClicked();
} }
} }