Fixed up first responders so it goes back to the playlist view when hiding side view.
parent
6fb1c77e62
commit
3daa06ebae
|
@ -171,9 +171,7 @@
|
||||||
|
|
||||||
[self setDividerPosition: [[NSUserDefaults standardUserDefaults] floatForKey:@"sideViewDividerPosition"]];
|
[self setDividerPosition: [[NSUserDefaults standardUserDefaults] floatForKey:@"sideViewDividerPosition"]];
|
||||||
|
|
||||||
NSWindow *window = [[sideView view] window];
|
[[[sideView view] window] makeFirstResponder:[sideView firstResponder]];
|
||||||
BOOL r = [window makeFirstResponder:[sideView firstResponder]];
|
|
||||||
NSLog(@"FIRST: %@ %i", window, r);
|
|
||||||
|
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"showSideView"];
|
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"showSideView"];
|
||||||
}
|
}
|
||||||
|
@ -182,6 +180,8 @@
|
||||||
{
|
{
|
||||||
[splitView setSubviews:[NSArray arrayWithObject:playlistView]];
|
[splitView setSubviews:[NSArray arrayWithObject:playlistView]];
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"showSideView"];
|
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"showSideView"];
|
||||||
|
|
||||||
|
[[playlistView window] makeFirstResponder:playlistView];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)sideViewIsHidden
|
- (BOOL)sideViewIsHidden
|
||||||
|
|
Loading…
Reference in New Issue