Fix Mini window restoring.

Fixes #99
CQTexperiment
Dzmitry Neviadomski 2021-02-14 03:09:59 +03:00
parent e3ecc30507
commit a07d07c9f9
1 changed files with 2 additions and 0 deletions

View File

@ -286,6 +286,8 @@
DLog(@"Saving expanded nodes: %@", [expandedNodes description]);
[[NSUserDefaults standardUserDefaults] setValue:[expandedNodes allObjects] forKey:@"fileTreeViewExpandedNodes"];
// Workaround window not restoring it's size and position.
[miniWindow setContentSize:NSMakeSize(miniWindow.frame.size.width, 1)];
}
- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag