1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-06 03:28:33 +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,8 +630,11 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
- (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) visibleWindows
{
if (!visibleWindows)
[fWindow makeKeyAndOrderFront: nil];
for (NSWindow * window in [NSApp windows])
if ([window isMainWindow] && [window isVisible])
return NO;
[fWindow makeKeyAndOrderFront: nil];
return NO;
}