views: Switching to other window should hide the menubar.
This commit is contained in:
parent
8a9e1824c3
commit
f219e7f0dd
1 changed files with 6 additions and 0 deletions
|
@ -439,6 +439,12 @@ void NativeWindowViews::OnWidgetActivationChanged(
|
||||||
NotifyWindowFocus();
|
NotifyWindowFocus();
|
||||||
else
|
else
|
||||||
NotifyWindowBlur();
|
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() {
|
void NativeWindowViews::DeleteDelegate() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue