1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-06 11:38:21 +00:00

better handling of revealing the main window when the dock is clicked

This commit is contained in:
Mitchell Livingston 2009-12-12 02:28:27 +00:00
parent ed1df8beac
commit 4b2f7cf4dd

View file

@ -630,7 +630,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
- (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) visibleWindows
{
if (!visibleWindows)
for (NSWindow * window in [NSApp windows])
if ([window isMainWindow] && [window isVisible])
return NO;
[fWindow makeKeyAndOrderFront: nil];
return NO;
}