Cog will now re-maximize window(s) when dock icon clicked after minimization.

CQTexperiment
o1 2015-01-15 16:57:22 +03:00
parent 185fff8465
commit 8bd04594dd
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 - (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag
{ {
if (flag == NO) 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; return NO;
} }