Fix bug when loading saved orientation.

CQTexperiment
vspader 2009-03-11 20:26:02 -07:00
parent 0d1398e0fb
commit 16625112af
1 changed files with 2 additions and 5 deletions

View File

@ -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