mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Close dev tools when window closes.
This commit is contained in:
@@ -86,9 +86,11 @@
|
||||
// sequence by getting rid of the window. By returning YES, we allow the window
|
||||
// to be removed from the screen.
|
||||
- (BOOL)windowShouldClose:(id)window {
|
||||
_handler->GetBrowser()->CloseDevTools();
|
||||
|
||||
_appContext = NULL;
|
||||
_handler = NULL;
|
||||
|
||||
|
||||
// Clean ourselves up after clearing the stack of anything that might have the window on it.
|
||||
[self autorelease];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user