fix: unsubscribe from observers when window is closing (#25554)
This commit is contained in:
parent
29c6864ee1
commit
22c6c891be
3 changed files with 11 additions and 10 deletions
|
@ -283,6 +283,7 @@ using TitleBarStyle = electron::NativeWindowMac::TitleBarStyle;
|
|||
}
|
||||
|
||||
- (void)windowWillClose:(NSNotification*)notification {
|
||||
shell_->Cleanup();
|
||||
shell_->NotifyWindowClosed();
|
||||
|
||||
// Something called -[NSWindow close] on a sheet rather than calling
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue