mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 20:43:15 +00:00
Fixed empty application menu on 10.5 and earlier
This commit is contained in:
parent
bcdf22b910
commit
93a732f0ca
1 changed files with 5 additions and 0 deletions
|
@ -2021,6 +2021,11 @@ NSMenuItem* CreateApplicationMenu()
|
|||
NSMenuItem* menuItem = [NSMenuItem new];
|
||||
[menuItem setSubmenu:menu];
|
||||
|
||||
if ([NSApp respondsToSelector:@selector(setAppleMenu:)])
|
||||
{
|
||||
[NSApp performSelector:@selector(setAppleMenu:) withObject:menu];
|
||||
}
|
||||
|
||||
return menuItem;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue