summaryrefslogtreecommitdiffstats
path: root/macosx/HBOutputPanelController.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBOutputPanelController.m')
-rw-r--r--macosx/HBOutputPanelController.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/macosx/HBOutputPanelController.m b/macosx/HBOutputPanelController.m
index c22209c28..41506b9b2 100644
--- a/macosx/HBOutputPanelController.m
+++ b/macosx/HBOutputPanelController.m
@@ -91,10 +91,17 @@
*/
- (IBAction)showOutputPanel:(id)sender
{
+ if ([[self window] isVisible])
+ {
+ [[self window] close];
+ }
+ else
+ {
[textView scrollRangeToVisible:NSMakeRange([outputTextStorage length], 0)];
[self showWindow:sender];
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"OutputPanelIsOpen"];
+ }
}
- (void) startEncodeLog:(NSString *) logPath