mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Remove parameter |by_user| in NotificationClosed
This commit is contained in:
@@ -140,7 +140,7 @@ void NotificationPresenterLinux::CancelNotification(NotifyNotification* notifica
|
||||
if (error)
|
||||
log_and_clear_error(error, "notify_notification_close");
|
||||
|
||||
GetDelegateFromNotification(notification)->NotificationClosed(false);
|
||||
GetDelegateFromNotification(notification)->NotificationClosed();
|
||||
DeleteNotification(notification);
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ void NotificationPresenterLinux::DeleteNotification(NotifyNotification* notifica
|
||||
}
|
||||
|
||||
void NotificationPresenterLinux::OnNotificationClosed(NotifyNotification* notification) {
|
||||
GetDelegateFromNotification(notification)->NotificationClosed(false);
|
||||
GetDelegateFromNotification(notification)->NotificationClosed();
|
||||
DeleteNotification(notification);
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ void NotificationPresenterMac::CancelNotification(content::DesktopNotificationDe
|
||||
for (NSUserNotification* deliveredNotification in center.deliveredNotifications)
|
||||
if ([notification isEqual:deliveredNotification]) {
|
||||
[center removeDeliveredNotification:deliveredNotification];
|
||||
delegate->NotificationClosed(false);
|
||||
delegate->NotificationClosed();
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user