fix: Empty menu case (#15553)

This commit is contained in:
Nitish Sakhawalkar 2018-11-02 12:32:57 -07:00 committed by Shelley Vohr
parent 08ec270b90
commit 8566f8712c

View file

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