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:
parent
ed1df8beac
commit
4b2f7cf4dd
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue