Skip to content

Commit

Permalink
Merge pull request #87912 from bruvzg/menu_name_set_fix
Browse files Browse the repository at this point in the history
[macOS] Fix changing main menu item names.
  • Loading branch information
akien-mga committed Feb 3, 2024
2 parents a72789c + 112f489 commit c680c7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platform/macos/display_server_macos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1676,6 +1676,10 @@
NSMenuItem *menu_item = [menu itemAtIndex:p_idx];
if (menu_item) {
[menu_item setTitle:[NSString stringWithUTF8String:p_text.utf8().get_data()]];
NSMenu *sub_menu = [menu_item submenu];
if (sub_menu) {
[sub_menu setTitle:[NSString stringWithUTF8String:p_text.utf8().get_data()]];
}
}
}
}
Expand Down

0 comments on commit c680c7c

Please sign in to comment.