mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Merge pull request #97977 from syntaxerror247/menu_bar_refresh_bug
Refresh `MenuBar` scene after child renamed in editor
This commit is contained in:
commit
80f0b33313
@ -510,6 +510,7 @@ void MenuBar::_refresh_menu_names() {
|
||||
if (!popups[i]->has_meta("_menu_name") && String(popups[i]->get_name()) != get_menu_title(i)) {
|
||||
menu_cache.write[i].name = popups[i]->get_name();
|
||||
shape(menu_cache.write[i]);
|
||||
queue_redraw();
|
||||
if (is_global && menu_cache[i].submenu_rid.is_valid()) {
|
||||
int item_idx = nmenu->find_item_index_with_submenu(main_menu, menu_cache[i].submenu_rid);
|
||||
if (item_idx >= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user