mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-23 16:22:59 +02:00
Fix #336
This commit is contained in:
@@ -120,8 +120,15 @@
|
|||||||
|
|
||||||
- (BOOL)applicationOpenUntitledFile:(NSApplication *)sender
|
- (BOOL)applicationOpenUntitledFile:(NSApplication *)sender
|
||||||
{
|
{
|
||||||
|
/* Bring an existing panel to the foreground */
|
||||||
|
for (NSWindow *window in [[NSApplication sharedApplication] windows]) {
|
||||||
|
if ([window isKindOfClass:[NSOpenPanel class]]) {
|
||||||
|
[(NSOpenPanel *)window makeKeyAndOrderFront:nil];
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
[[NSDocumentController sharedDocumentController] openDocument:self];
|
[[NSDocumentController sharedDocumentController] openDocument:self];
|
||||||
return YES;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)userNotificationCenter:(NSUserNotificationCenter *)center didActivateNotification:(NSUserNotification *)notification
|
- (void)userNotificationCenter:(NSUserNotificationCenter *)center didActivateNotification:(NSUserNotification *)notification
|
||||||
|
Reference in New Issue
Block a user