PopupMenu item_pressed is sent before checking hide flags.
This commit is contained in:
parent
1c17c2b9b3
commit
9d0de7d417
1 changed files with 3 additions and 3 deletions
|
@ -1071,6 +1071,9 @@ void PopupMenu::activate_item(int p_item) {
|
||||||
pop = Object::cast_to<PopupMenu>(next);
|
pop = Object::cast_to<PopupMenu>(next);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit_signal("id_pressed", id);
|
||||||
|
emit_signal("index_pressed", p_item);
|
||||||
|
|
||||||
// Hides popup by default; unless otherwise specified
|
// Hides popup by default; unless otherwise specified
|
||||||
// by using set_hide_on_item_selection and set_hide_on_checkable_item_selection
|
// by using set_hide_on_item_selection and set_hide_on_checkable_item_selection
|
||||||
|
|
||||||
|
@ -1084,9 +1087,6 @@ void PopupMenu::activate_item(int p_item) {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
hide();
|
hide();
|
||||||
|
|
||||||
emit_signal("id_pressed", id);
|
|
||||||
emit_signal("index_pressed", p_item);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PopupMenu::remove_item(int p_idx) {
|
void PopupMenu::remove_item(int p_idx) {
|
||||||
|
|
Loading…
Reference in a new issue