Merged in chrisedisson/cog/maximize-from-dock (pull request #2)

Cog will now re-maximize window(s) when dock icon clicked after minimization.
CQTexperiment
kode54 2015-01-15 18:03:11 -08:00
commit 040efbcc15
1 changed files with 5 additions and 1 deletions

View File

@ -401,7 +401,11 @@ increase/decrease as long as the user holds the left/right, plus/minus button */
- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag
{
if (flag == NO)
[mainWindow makeKeyAndOrderFront:self];
[mainWindow makeKeyAndOrderFront:self]; // TODO: do we really need this? We never close the main window.
for(NSWindow* win in [NSApp windows]) // Maximizing all windows
if([win isMiniaturized])
[win deminiaturize:self];
return NO;
}