From 112f489449634984dd6f248bc9a3513393312b1f Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sat, 3 Feb 2024 21:12:48 +0200 Subject: [PATCH] [macOS] Fix changing main menu item names. --- platform/macos/display_server_macos.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/macos/display_server_macos.mm b/platform/macos/display_server_macos.mm index b471fc827b86..cad8435cbbb4 100644 --- a/platform/macos/display_server_macos.mm +++ b/platform/macos/display_server_macos.mm @@ -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()]]; + } } } }