]> granicus.if.org Git - handbrake/commitdiff
Debug output window is now opened automatically if it was visible when HB was closed.
authorcleaner <mika.ryynanen@gmail.com>
Wed, 6 Jun 2007 20:05:55 +0000 (20:05 +0000)
committercleaner <mika.ryynanen@gmail.com>
Wed, 6 Jun 2007 20:05:55 +0000 (20:05 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@603 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm
macosx/HBOutputPanelController.m

index 9584f169aac43e6f0b267ecb544e18cce82b2fe5..cdd0d3008f6e642c07830a5b1bd64951c8c8a994 100644 (file)
@@ -44,6 +44,10 @@ static int FormatSettings[3][4] =
     int    build;
     char * version;
 
+    // Open debug output window now if it was visible when HB was closed
+    if ([[NSUserDefaults standardUserDefaults] boolForKey:@"OutputPanelIsOpen"])
+        [self showDebugOutputPanel:nil];
+
     // Init libhb
        int debugLevel = [[NSUserDefaults standardUserDefaults] boolForKey:@"ShowVerboseOutput"] ? HB_DEBUG_ALL : HB_DEBUG_NONE;
     fHandle = hb_init(debugLevel, [[NSUserDefaults standardUserDefaults] boolForKey:@"CheckForUpdates"]);
index 87a5d387629965f9f261eb943a81774a23d88251..54bf4916efb4da318e33b9779dba43448bffe41a 100644 (file)
@@ -59,6 +59,8 @@
                
     [textView scrollRangeToVisible:NSMakeRange([outputTextStorage length], 0)];
        [outputPanel orderFront:nil];
+
+    [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"OutputPanelIsOpen"];
 }
 
 /**
        [pboard setString:[outputTextStorage string] forType:NSStringPboardType];
 }
 
+- (void)windowWillClose:(NSNotification *)aNotification
+{
+    [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"OutputPanelIsOpen"];
+}
+
+
 @end