Fix Mini window restoring.

Fixes #99
This commit is contained in:
Dzmitry Neviadomski 2021-02-14 03:09:59 +03:00
parent e3ecc30507
commit a07d07c9f9

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