From c1f9494a74e280e090e5767a76f49d5f4cb021eb Mon Sep 17 00:00:00 2001 From: Andy Dill Date: Wed, 31 Jul 2019 15:36:53 -0700 Subject: [PATCH] fix: expose setMenuBarVisibility again --- shell/browser/api/atom_api_top_level_window.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/browser/api/atom_api_top_level_window.cc b/shell/browser/api/atom_api_top_level_window.cc index c3f82dfc4d0c7..f8101f92a15cd 100644 --- a/shell/browser/api/atom_api_top_level_window.cc +++ b/shell/browser/api/atom_api_top_level_window.cc @@ -1168,6 +1168,7 @@ void TopLevelWindow::BuildPrototype(v8::Isolate* isolate, .SetMethod("_isMenuBarAutoHide", &TopLevelWindow::IsMenuBarAutoHide) .SetProperty("autoHideMenuBar", &TopLevelWindow::IsMenuBarAutoHide, &TopLevelWindow::SetAutoHideMenuBar) + .SetMethod("setMenuBarVisibility", &TopLevelWindow::SetMenuBarVisibility) .SetMethod("isMenuBarVisible", &TopLevelWindow::IsMenuBarVisible) .SetMethod("setAspectRatio", &TopLevelWindow::SetAspectRatio) .SetMethod("previewFile", &TopLevelWindow::PreviewFile)