Mini Window: Fix saving and restoring position
Fixes #212 Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
1c3419580f
commit
77a079bd53
2 changed files with 3 additions and 0 deletions
|
@ -392,6 +392,7 @@ void* kAppControllerContext = &kAppControllerContext;
|
||||||
[[NSUserDefaults standardUserDefaults] setValue:[expandedNodes allObjects] forKey:@"fileTreeViewExpandedNodes"];
|
[[NSUserDefaults standardUserDefaults] setValue:[expandedNodes allObjects] forKey:@"fileTreeViewExpandedNodes"];
|
||||||
// Workaround window not restoring it's size and position.
|
// Workaround window not restoring it's size and position.
|
||||||
[miniWindow setContentSize:NSMakeSize(miniWindow.frame.size.width, 1)];
|
[miniWindow setContentSize:NSMakeSize(miniWindow.frame.size.width, 1)];
|
||||||
|
[miniWindow saveFrameUsingName:@"Mini Window"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag
|
- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag
|
||||||
|
|
|
@ -29,6 +29,8 @@ extern NSString *iTunesDropType;
|
||||||
[self setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary];
|
[self setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary];
|
||||||
|
|
||||||
hdcdLogo = [NSImage imageNamed:@"hdcdLogoTemplate"];
|
hdcdLogo = [NSImage imageNamed:@"hdcdLogoTemplate"];
|
||||||
|
|
||||||
|
[self setFrameUsingName:@"Mini Window"];
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
|
Loading…
Reference in a new issue