Merge pull request #2455 from firefly2442/hide-menu-fix
[UI fix] Hide opened menu when click on menu button
This commit is contained in:
commit
0d2b28377f
|
@ -323,8 +323,10 @@ void PopupMenu::_input_event(const InputEvent &p_event) {
|
|||
invalidated_click=false;
|
||||
break;
|
||||
}
|
||||
if (over<0 || items[over].separator || items[over].disabled)
|
||||
if (over<0 || items[over].separator || items[over].disabled) {
|
||||
hide();
|
||||
break; //non-activable
|
||||
}
|
||||
|
||||
if (items[over].submenu!="") {
|
||||
|
||||
|
|
Loading…
Reference in New Issue