diff options
author | ritsuka <[email protected]> | 2014-08-10 10:03:12 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-08-10 10:03:12 +0000 |
commit | ff067cd49499e696f65da8efb8e565717d52d0b0 (patch) | |
tree | 66f93b853ac28e78fe1509abad4a2107e92127a0 /macosx/Controller.m | |
parent | 040250a457d4c4dc0d4d5e27dfc8cafd6a385227 (diff) |
MacGui: removed the “Show Presets Drawer” preference. The state of the drawer is now saved automatically.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6281 b64f7644-9d1e-0410-96f1-a4d463321fa5
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]; } |