Merge pull request #87912 from bruvzg/menu_name_set_fix
[macOS] Fix changing main menu item names.
This commit is contained in:
commit
c680c7cffe
|
@ -1676,6 +1676,10 @@ void DisplayServerMacOS::global_menu_set_item_text(const String &p_menu_root, in
|
|||
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()]];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue