mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
mac: Close all child windows before closing current window
This commit is contained in:
@@ -604,6 +604,10 @@ void NativeWindowMac::Close() {
|
||||
}
|
||||
|
||||
void NativeWindowMac::CloseImmediately() {
|
||||
// Close all child windows before closing this window.
|
||||
for (NSWindow* child in [window_ childWindows])
|
||||
[child close];
|
||||
|
||||
[window_ close];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user