mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
apparently applicationShouldHandleReopen:hasVisibleWindows:'s visibleWindows only counts the windows we care about already
This commit is contained in:
parent
6ae79cdb91
commit
c46a597742
1 changed files with 2 additions and 8 deletions
|
@ -621,14 +621,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||||
|
|
||||||
- (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) visibleWindows
|
- (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) visibleWindows
|
||||||
{
|
{
|
||||||
if (visibleWindows)
|
if (!visibleWindows)
|
||||||
{
|
[fWindow makeKeyAndOrderFront: nil];
|
||||||
for (NSWindow * window in [NSApp windows])
|
|
||||||
if ([window isVisible] && [window canBecomeMainWindow])
|
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
|
|
||||||
[fWindow makeKeyAndOrderFront: nil];
|
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue