Merge pull request #115378 from kitbdev/fix-popupmenu-set-id
Fix error after setting native PopupMenu item ID
This commit is contained in:
commit
7b4e220465
1 changed files with 1 additions and 3 deletions
|
|
@ -2108,9 +2108,7 @@ void PopupMenu::set_item_id(int p_idx, int p_id) {
|
|||
|
||||
items.write[p_idx].id = p_id;
|
||||
|
||||
if (global_menu.is_valid()) {
|
||||
NativeMenu::get_singleton()->set_item_tag(global_menu, p_idx, p_id);
|
||||
}
|
||||
// `global_menu` does not know about IDs so there is no need to update it.
|
||||
|
||||
control->queue_redraw();
|
||||
child_controls_changed();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue