From e71927c5da23fe3a6d1468234ff432e2d92e4256 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 17 Jun 2014 16:50:25 +0800 Subject: [PATCH] Closing devtools window means it is not visible. --- brightray/browser/mac/bry_inspectable_web_contents_view.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/brightray/browser/mac/bry_inspectable_web_contents_view.mm b/brightray/browser/mac/bry_inspectable_web_contents_view.mm index edc455c2fd7..af78def9899 100644 --- a/brightray/browser/mac/bry_inspectable_web_contents_view.mm +++ b/brightray/browser/mac/bry_inspectable_web_contents_view.mm @@ -232,6 +232,7 @@ void SetActive(content::WebContents* web_contents, bool active) { #pragma mark - NSWindowDelegate - (BOOL)windowShouldClose:(id)sender { + _private->visible = NO; [_private->window orderOut:nil]; return NO; }