Fix bug when loading saved orientation.
parent
0d1398e0fb
commit
16625112af
|
@ -50,15 +50,12 @@
|
|||
|
||||
- (void)awakeFromNib
|
||||
{
|
||||
[splitView setVertical:[[NSUserDefaults standardUserDefaults] boolForKey:[self sideViewVerticalDefaultsKey]]];
|
||||
|
||||
if ([[NSUserDefaults standardUserDefaults] boolForKey:[self showSideViewDefaultsKey]])
|
||||
{
|
||||
[self showSideView];
|
||||
}
|
||||
|
||||
if (![[NSUserDefaults standardUserDefaults] boolForKey:[self sideViewVerticalDefaultsKey]])
|
||||
{
|
||||
[self toggleVertical:self];
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction)toggleSideView:(id)sender
|
||||
|
|
Loading…
Reference in New Issue