summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-08-10 10:03:12 +0000
committerritsuka <[email protected]>2014-08-10 10:03:12 +0000
commitff067cd49499e696f65da8efb8e565717d52d0b0 (patch)
tree66f93b853ac28e78fe1509abad4a2107e92127a0
parent040250a457d4c4dc0d4d5e27dfc8cafd6a385227 (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
-rw-r--r--macosx/Controller.m9
-rw-r--r--macosx/English.lproj/Preferences.xib17
2 files changed, 12 insertions, 14 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];
}
diff --git a/macosx/English.lproj/Preferences.xib b/macosx/English.lproj/Preferences.xib
index e49e83a90..87d687057 100644
--- a/macosx/English.lproj/Preferences.xib
+++ b/macosx/English.lproj/Preferences.xib
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5056" systemVersion="13F7" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5056" systemVersion="13F12" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment version="1060" identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5056"/>
@@ -35,7 +35,7 @@
</window>
<userDefaultsController representsSharedInstance="YES" id="61" userLabel="Shared Defaults"/>
<customView id="233" userLabel="General">
- <rect key="frame" x="0.0" y="0.0" width="500" height="399"/>
+ <rect key="frame" x="0.0" y="0.0" width="500" height="376"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<popUpButton verticalHuggingPriority="750" id="374">
@@ -121,7 +121,7 @@
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" id="275">
- <rect key="frame" x="18" y="366" width="103" height="14"/>
+ <rect key="frame" x="18" y="343" width="103" height="14"/>
<autoresizingMask key="autoresizingMask"/>
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="At launch:" id="307">
<font key="font" metaFont="smallSystem"/>
@@ -171,17 +171,6 @@
<binding destination="61" name="value" keyPath="values.DefaultAutoNaming" id="262"/>
</connections>
</button>
- <button id="238">
- <rect key="frame" x="124" y="364" width="133" height="18"/>
- <autoresizingMask key="autoresizingMask"/>
- <buttonCell key="cell" type="check" title="Show Presets Drawer" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" inset="2" id="301">
- <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
- <font key="font" metaFont="smallSystem"/>
- </buttonCell>
- <connections>
- <binding destination="61" name="value" keyPath="values.DefaultPresetsDrawerShow" id="260"/>
- </connections>
- </button>
<textField verticalHuggingPriority="750" id="448">
<rect key="frame" x="209" y="233" width="125" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>