8000 Auto-hide menubar when in fullscreen by zcbenz · Pull Request #6429 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Auto-hide menubar when in fullscreen #6429

New issue
Merged
merged 1 commit into from
Jul 11, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions atom/browser/native_window_views.cc
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,12 @@ void NativeWindowViews::SetFullScreen(bool fullscreen) {
else
window_->native_widget_private()->ShowWithWindowState(
ui::SHOW_STATE_FULLSCREEN);

// Auto-hide menubar when in fullscreen.
if (fullscreen)
SetMenuBarVisibility(false);
else
SetMenuBarVisibility(!menu_bar_autohide_);
#endif
}

Expand Down
0