Clicking the dock icon is more future-proof and simpler.

This commit is contained in:
Mitchell Livingston 2006-06-20 14:16:32 +00:00
parent 29daf2d5af
commit 317ba16b08
1 changed files with 3 additions and 3 deletions

View File

@ -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;
} }