[Windows] Fix pop-up dialogs instantly closing.
This commit is contained in:
parent
3eb585e478
commit
5a97184931
1 changed files with 3 additions and 3 deletions
|
@ -1403,12 +1403,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 a new issue