diff options
author | ritsuka <[email protected]> | 2015-04-07 16:14:30 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-04-07 16:14:30 +0000 |
commit | 13d0d1d579a7e56ac2e2978994e3f0e74d324bba (patch) | |
tree | 557b0bc93f0d4c42028ae5c3a6cd80989b52fbfa /macosx/HBPictureController.m | |
parent | 3f537cb97206f609c62867b32f262dd716b8df31 (diff) |
MacGui: changed the Preview Window and Picture Panel behaviour to avoid the hide and show thing when loading a new title, now they can always be opened even if no title is loaded.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7065 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPictureController.m')
-rw-r--r-- | macosx/HBPictureController.m | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/macosx/HBPictureController.m b/macosx/HBPictureController.m index 73c09f1e2..ba6dc9a24 100644 --- a/macosx/HBPictureController.m +++ b/macosx/HBPictureController.m @@ -315,30 +315,24 @@ static void *HBPictureControllerContext = &HBPictureControllerContext; /** * Displays and brings the picture window to the front */ -- (void)showPictureWindow +- (void)showWindow:(id)sender { - if ([[self window] isVisible]) + if (self.window.isVisible) { - [[self window] close]; + [self.window close]; } else { - [self showWindow:self]; - [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"PictureSizeWindowIsOpen"]; + [super showWindow:self]; } [self resizeInspectorForTab:nil]; [self adjustSizingDisplay:nil]; } -- (IBAction) showPreviewWindow: (id) sender +- (IBAction)showPreviewWindow:(id)sender { - [self.delegate showPreviewWindow:sender]; -} - -- (void) windowWillClose: (NSNotification *)aNotification -{ - [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"PictureSizeWindowIsOpen"]; + [self.previewWindow showWindow:sender]; } @end |