mac: Close the devtools window before releasing it

Sometime simply releasing it may leave it open for a while.
This commit is contained in:
Cheng Zhao 2014-11-03 22:05:16 +08:00
parent 92244500c6
commit b75dc9b08d

View file

@ -68,6 +68,7 @@ using namespace brightray;
[devtools_window_ makeKeyAndOrderFront:nil];
} else {
[[self window] makeKeyAndOrderFront:nil];
[devtools_window_ close];
devtools_window_.reset();
}
}