Browse Source

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

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

+ 2 - 0
brightray/browser/mac/cocoa_notification.mm

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