Merge pull request #57001 from bruvzg/popup_dialog_fix

This commit is contained in:
Yuri Roubinsky 2022-01-20 20:22:47 +03:00 committed by GitHub
commit 8fc0dd9997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1403,12 +1403,12 @@ void PopupMenu::activate_item(int p_item) {
need_hide = false; need_hide = false;
} }
emit_signal(SNAME("id_pressed"), id);
emit_signal(SNAME("index_pressed"), p_item);
if (need_hide) { if (need_hide) {
hide(); hide();
} }
emit_signal(SNAME("id_pressed"), id);
emit_signal(SNAME("index_pressed"), p_item);
} }
void PopupMenu::remove_item(int p_idx) { void PopupMenu::remove_item(int p_idx) {