Merge pull request #73508 from nongvantinh/reorder-emitted-signals

Reordering emitted signals in PopupMenu
This commit is contained in:
Yuri Sizov 2023-02-17 21:17:01 +03:00 committed by GitHub
commit 6bb4b00647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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