hide opened menu when click on menu button
This commit is contained in:
parent
2d570ac657
commit
930cb97c7d
@ -323,8 +323,10 @@ void PopupMenu::_input_event(const InputEvent &p_event) {
|
|||||||
invalidated_click=false;
|
invalidated_click=false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (over<0 || items[over].separator || items[over].disabled)
|
if (over<0 || items[over].separator || items[over].disabled) {
|
||||||
|
hide();
|
||||||
break; //non-activable
|
break; //non-activable
|
||||||
|
}
|
||||||
|
|
||||||
if (items[over].submenu!="") {
|
if (items[over].submenu!="") {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user