Always show the macOS New OS Window menu item
When there is no keyboard shortcut for a new OS window, the macOS menu item should still exist, it should just not have a keyboard shortcut.
This commit is contained in:
parent
66a455a079
commit
53e6de9bd9
@ -253,14 +253,12 @@ cocoa_create_global_menu(void) {
|
|||||||
keyEquivalent:@","]
|
keyEquivalent:@","]
|
||||||
setTarget:global_menu_target];
|
setTarget:global_menu_target];
|
||||||
|
|
||||||
if (new_window_key[0]) {
|
|
||||||
NSMenuItem* new_os_window_menu_item =
|
NSMenuItem* new_os_window_menu_item =
|
||||||
[appMenu addItemWithTitle:@"New OS window"
|
[appMenu addItemWithTitle:@"New OS window"
|
||||||
action:@selector(new_os_window:)
|
action:@selector(new_os_window:)
|
||||||
keyEquivalent:@(new_window_key)];
|
keyEquivalent:@(new_window_key)];
|
||||||
[new_os_window_menu_item setKeyEquivalentModifierMask:new_window_mods];
|
[new_os_window_menu_item setKeyEquivalentModifierMask:new_window_mods];
|
||||||
[new_os_window_menu_item setTarget:global_menu_target];
|
[new_os_window_menu_item setTarget:global_menu_target];
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
[appMenu addItemWithTitle:[NSString stringWithFormat:@"Hide %@", app_name]
|
[appMenu addItemWithTitle:[NSString stringWithFormat:@"Hide %@", app_name]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user