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

View File

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