fix: Linux empty menu model handling (#15605)

* fix: Linux empty menu model handling

* Update root_view.cc
This commit is contained in:
Nitish Sakhawalkar 2018-11-08 08:11:15 -08:00 committed by Shelley Vohr
parent ae9f4ef425
commit 48ebebcafe
2 changed files with 2 additions and 2 deletions

View file

@ -894,7 +894,6 @@ void NativeWindowViews::SetMenu(AtomMenuModel* menu_model) {
if (menu_model == nullptr) {
global_menu_bar_.reset();
root_view_->UnregisterAcceleratorsWithFocusManager();
return;
}
if (!global_menu_bar_ && ShouldUseGlobalMenuBar())