Fix for macOS Ventura
This commit is contained in:
parent
d6112f4a30
commit
0365386fa1
|
@ -113,7 +113,7 @@ void prefs_init(void)
|
||||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||||
#if SDL_VERSION_ATLEAST(2,0,0)
|
#if SDL_VERSION_ATLEAST(2,0,0)
|
||||||
for (NSMenuItem *sub_item in [NSApp mainMenu].itemArray[0].submenu.itemArray) {
|
for (NSMenuItem *sub_item in [NSApp mainMenu].itemArray[0].submenu.itemArray) {
|
||||||
if ([sub_item.title isEqualToString:@"Preferences…"]) {
|
if ([sub_item.title isEqualToString:@"Preferences…"] || [sub_item.title isEqualToString:@"Settings…"]) {
|
||||||
sub_item.target = [[SheepShaverMain alloc] init];
|
sub_item.target = [[SheepShaverMain alloc] init];
|
||||||
sub_item.action = @selector(openPreferences:);
|
sub_item.action = @selector(openPreferences:);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue