mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Reordering emitted signals in PopupMenu
This commit is contained in:
parent
c7aadab155
commit
5928d801a9
@ -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
Block a user