Mini Window: Fix saving and restoring position

Fixes #212

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-01-29 18:00:34 -08:00
parent 1c3419580f
commit 77a079bd53
2 changed files with 3 additions and 0 deletions

View File

@ -392,6 +392,7 @@ void* kAppControllerContext = &kAppControllerContext;
[[NSUserDefaults standardUserDefaults] setValue:[expandedNodes allObjects] forKey:@"fileTreeViewExpandedNodes"];
// Workaround window not restoring it's size and position.
[miniWindow setContentSize:NSMakeSize(miniWindow.frame.size.width, 1)];
[miniWindow saveFrameUsingName:@"Mini Window"];
}
- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag

View File

@ -29,6 +29,8 @@ extern NSString *iTunesDropType;
[self setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary];
hdcdLogo = [NSImage imageNamed:@"hdcdLogoTemplate"];
[self setFrameUsingName:@"Mini Window"];
}
return self;