Merge pull request #73508 from nongvantinh/reorder-emitted-signals
Reordering emitted signals in PopupMenu
This commit is contained in:
commit
6bb4b00647
|
@ -1715,12 +1715,12 @@ void PopupMenu::activate_item(int p_item) {
|
|||
need_hide = false;
|
||||
}
|
||||
|
||||
emit_signal(SNAME("id_pressed"), id);
|
||||
emit_signal(SNAME("index_pressed"), p_item);
|
||||
|
||||
if (need_hide) {
|
||||
hide();
|
||||
}
|
||||
|
||||
emit_signal(SNAME("id_pressed"), id);
|
||||
emit_signal(SNAME("index_pressed"), p_item);
|
||||
}
|
||||
|
||||
void PopupMenu::remove_item(int p_idx) {
|
||||
|
|
Loading…
Reference in New Issue