mirror of
https://github.com/transmission/transmission
synced 2025-02-04 13:32:19 +00:00
Don't assume Apple meant visible windows with hasVisibleWindows: when they really meant hasVisibleAndMinimizedWindows.
This commit is contained in:
parent
9248902bc3
commit
6aeb08af3e
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
|
||||
- (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) visibleWindows
|
||||
{
|
||||
if (!visibleWindows)
|
||||
if (![fWindow isVisible] && ![[fPrefsController window] isVisible])
|
||||
[fWindow makeKeyAndOrderFront: nil];
|
||||
return NO;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue