mirror of
https://github.com/electron/electron.git
synced 2026-02-11 15:45:04 -05:00
views: Switching to other window should hide the menubar.
This commit is contained in:
@@ -439,6 +439,12 @@ void NativeWindowViews::OnWidgetActivationChanged(
|
||||
NotifyWindowFocus();
|
||||
else
|
||||
NotifyWindowBlur();
|
||||
|
||||
// The menu bar should be hide when window is closed
|
||||
if (!active && menu_bar_autohide_ && menu_bar_show_) {
|
||||
SetMenuBarVisibility(false);
|
||||
Layout();
|
||||
}
|
||||
}
|
||||
|
||||
void NativeWindowViews::DeleteDelegate() {
|
||||
|
||||
Reference in New Issue
Block a user