Reordering emitted signals in PopupMenu

This commit is contained in:
Nong Van Tinh 2023-02-17 23:18:56 +07:00
parent c7aadab155
commit 5928d801a9

View File

@ -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) {