mirror of
https://github.com/electron/electron.git
synced 2026-02-10 23:25:30 -05:00
mac: Close the devtools window before releasing it
Sometime simply releasing it may leave it open for a while.
This commit is contained in:
@@ -68,6 +68,7 @@ using namespace brightray;
|
||||
[devtools_window_ makeKeyAndOrderFront:nil];
|
||||
} else {
|
||||
[[self window] makeKeyAndOrderFront:nil];
|
||||
[devtools_window_ close];
|
||||
devtools_window_.reset();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user