Clicking the dock icon is more future-proof and simpler.
This commit is contained in:
parent
29daf2d5af
commit
317ba16b08
|
@ -236,10 +236,10 @@ static void sleepCallBack( void * controller, io_service_t y,
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) applicationShouldHandleReopen: (NSApplication *) app
|
- (BOOL) applicationShouldHandleReopen: (NSApplication *) app
|
||||||
hasVisibleWindows: (BOOL) flag
|
hasVisibleWindows: (BOOL) visibleWindows
|
||||||
{
|
{
|
||||||
if (![fWindow isVisible] && ![[fPrefsController window] isVisible])
|
if (!visibleWindows)
|
||||||
[self showMainWindow: nil];
|
[fWindow makeKeyAndOrderFront: nil];
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue