more tweaking of dock icon click behavior. unminimize the frontmost browser if

it's in the dock and the only other browser.
This commit is contained in:
pinkerton%aol.net 2004-01-23 21:54:23 +00:00
Родитель 223270bb8c
Коммит 63c1087dfa
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -1162,12 +1162,13 @@ const int kReuseWindowOnAE = 2;
{
// ignore |hasVisibleWindows| because we always want to show a browser window when
// the user clicks on the app icon, even if, say, prefs or the d/l window are open.
// If there is no browser, create one. If there is one, bring it to the front and
// unminimize it if it's down in the dock.
// If there is no browser, create one. If there is one, unminimize it if it's in the dock.
NSWindow* frontBrowser = [self getFrontmostBrowserWindow];
if ( !frontBrowser )
[self newWindow:self];
else if ([frontBrowser isMiniaturized])
[frontBrowser deminiaturize:self];
return NO;
}