]> granicus.if.org Git - handbrake/commitdiff
MacGui: add back the drawer code I accidentally removed previously.
authorritsuka <damiog@gmail.com>
Thu, 22 Jan 2015 10:48:06 +0000 (10:48 +0000)
committerritsuka <damiog@gmail.com>
Thu, 22 Jan 2015 10:48:06 +0000 (10:48 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6787 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/HBController.m

index b8f78fa9c4f3a76f2dcf0ad2847587c1dd67852c..a1d1b2a43bdf8b29e306f13fe744df8932823c5b 100644 (file)
@@ -8,7 +8,6 @@
 
 #import "HBQueueController.h"
 
-#import "HBOutputPanelController.h"
 #import "HBPresetsManager.h"
 #import "HBPreset.h"
 #import "HBUtilities.h"
         [fPresetDrawer setContentSize: drawerSize];
     }
 
+    // Show/Hide the Presets drawer upon launch based
+    // on user preference DefaultPresetsDrawerShow
+    if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HBDefaultPresetsDrawerShow"])
+    {
+        [fPresetDrawer open:self];
+    }
+
     // Align the start / stop widgets with the chapter popups
     NSPoint startPoint = [fSrcChapterStartPopUp frame].origin;
     startPoint.y += 2;