Browse Source

fix: reset the NSUserNotication handle on dismiss (#17822)

trop[bot] 6 years ago
parent
commit
ed8ab7e9ad
1 changed files with 2 additions and 0 deletions
  1. 2 0
      atom/browser/notifications/mac/cocoa_notification.mm

+ 2 - 0
atom/browser/notifications/mac/cocoa_notification.mm

@@ -109,6 +109,8 @@ void CocoaNotification::Dismiss() {
   NotificationDismissed();
 
   this->LogAction("dismissed");
+
+  notification_.reset(nil);
 }
 
 void CocoaNotification::NotificationDisplayed() {