Add option for Mini Player to appear on top.
parent
f86f7dc532
commit
3a3694d78b
|
@ -97,4 +97,6 @@
|
||||||
|
|
||||||
@property BOOL miniMode;
|
@property BOOL miniMode;
|
||||||
|
|
||||||
|
@property (nonatomic) BOOL floatingMiniWindow;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -177,6 +177,9 @@ void* kAppControllerContext = &kAppControllerContext;
|
||||||
|
|
||||||
[self setToolbarStyle:[[NSUserDefaults standardUserDefaults] boolForKey:@"toolbarStyleFull"]];
|
[self setToolbarStyle:[[NSUserDefaults standardUserDefaults] boolForKey:@"toolbarStyleFull"]];
|
||||||
|
|
||||||
|
[self setFloatingMiniWindow:[[NSUserDefaults standardUserDefaults]
|
||||||
|
boolForKey:@"floatingMiniWindow"]];
|
||||||
|
|
||||||
// We need file tree view to restore its state here
|
// We need file tree view to restore its state here
|
||||||
// so attempt to access file tree view controller's root view
|
// so attempt to access file tree view controller's root view
|
||||||
// to force it to read nib and create file tree view for us
|
// to force it to read nib and create file tree view for us
|
||||||
|
@ -606,4 +609,11 @@ void* kAppControllerContext = &kAppControllerContext;
|
||||||
[miniWindow setContentSize:NSMakeSize(miniWindow.frame.size.width, 0)];
|
[miniWindow setContentSize:NSMakeSize(miniWindow.frame.size.width, 0)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)setFloatingMiniWindow:(BOOL)floatingMiniWindow {
|
||||||
|
_floatingMiniWindow = floatingMiniWindow;
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:floatingMiniWindow forKey:@"floatingMiniWindow"];
|
||||||
|
NSWindowLevel level = floatingMiniWindow ? NSFloatingWindowLevel : NSNormalWindowLevel;
|
||||||
|
[miniWindow setLevel:level];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -1373,6 +1373,12 @@ Gw
|
||||||
</binding>
|
</binding>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
|
<menuItem title="Show Mini Player On Top" keyEquivalent="T" id="lXN-EZ-xg0" userLabel="Show Mini Player On Top">
|
||||||
|
<connections>
|
||||||
|
<binding destination="226" name="enabled" keyPath="miniMode" id="ftj-Rc-nqc"/>
|
||||||
|
<binding destination="226" name="value" keyPath="floatingMiniWindow" id="6rr-FP-Fw2"/>
|
||||||
|
</connections>
|
||||||
|
</menuItem>
|
||||||
<menuItem isSeparatorItem="YES" id="1642">
|
<menuItem isSeparatorItem="YES" id="1642">
|
||||||
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
|
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
|
|
Loading…
Reference in New Issue