git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 9fa564f97c7d443987738142585d288f58a26315
parent 6ec4583aa0e018459b9bd18a1f95c1d7e6875b85
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Thu, 25 Feb 2021 17:12:01 +0200

Fix #336

Diffstat:
MCocoa/AppDelegate.m9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/Cocoa/AppDelegate.m b/Cocoa/AppDelegate.m @@ -120,8 +120,15 @@ - (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]; - return YES; + return true; } - (void)userNotificationCenter:(NSUserNotificationCenter *)center didActivateNotification:(NSUserNotification *)notification

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.