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"]];
|
||||
|
||||
NSWindow *window = [[sideView view] window];
|
||||
BOOL r = [window makeFirstResponder:[sideView firstResponder]];
|
||||
NSLog(@"FIRST: %@ %i", window, r);
|
||||
[[[sideView view] window] makeFirstResponder:[sideView firstResponder]];
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"showSideView"];
|
||||
}
|
||||
|
@ -182,6 +180,8 @@
|
|||
{
|
||||
[splitView setSubviews:[NSArray arrayWithObject:playlistView]];
|
||||
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"showSideView"];
|
||||
|
||||
[[playlistView window] makeFirstResponder:playlistView];
|
||||
}
|
||||
|
||||
- (BOOL)sideViewIsHidden
|
||||
|
|
Loading…
Reference in New Issue