Skip to content

Commit

Permalink
Merge pull request godotengine#97977 from syntaxerror247/menu_bar_ref…
Browse files Browse the repository at this point in the history
…resh_bug

Refresh `MenuBar` scene after child renamed in editor
  • Loading branch information
clayjohn authored Oct 18, 2024
2 parents 58a7f9b + 9f6c88d commit 80f0b33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/gui/menu_bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 80f0b33

Please sign in to comment.