mirror of
https://github.com/electron/electron.git
synced 2026-02-03 19:55:43 -05:00
mac: Clean delegate after closing window
This commit is contained in:
@@ -145,6 +145,7 @@ using namespace brightray;
|
||||
#pragma mark - NSWindowDelegate
|
||||
|
||||
- (void)windowWillClose:(NSNotification*)notification {
|
||||
[devtools_window_ setDelegate:nil];
|
||||
inspectableWebContentsView_->inspectable_web_contents()->CloseDevTools();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user