fix: Empty menu case (#15553)
This commit is contained in:
parent
08ec270b90
commit
8566f8712c
1 changed files with 1 additions and 0 deletions
|
@ -894,6 +894,7 @@ void NativeWindowViews::SetMenu(AtomMenuModel* menu_model) {
|
||||||
if (menu_model == nullptr) {
|
if (menu_model == nullptr) {
|
||||||
global_menu_bar_.reset();
|
global_menu_bar_.reset();
|
||||||
root_view_->UnregisterAcceleratorsWithFocusManager();
|
root_view_->UnregisterAcceleratorsWithFocusManager();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!global_menu_bar_ && ShouldUseGlobalMenuBar())
|
if (!global_menu_bar_ && ShouldUseGlobalMenuBar())
|
||||||
|
|
Loading…
Add table
Reference in a new issue