diff options
Diffstat (limited to 'macosx/Controller.m')
-rw-r--r-- | macosx/Controller.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m index 4017113db..d8c12b36c 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -4796,6 +4796,15 @@ the user is using "Custom" settings by determining the sender*/ - (IBAction) toggleDrawer:(id)sender { + if ([fPresetDrawer state] == NSDrawerClosedState) + { + [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"DefaultPresetsDrawerShow"]; + } + else + { + [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"DefaultPresetsDrawerShow"]; + } + [fPresetDrawer toggle:self]; } |