From 667689b6088e4accb8ce1e1cfa203f2ecd2dacb3 Mon Sep 17 00:00:00 2001 From: ritsuka Date: Wed, 13 May 2015 16:30:46 +0000 Subject: MacGui: remove che previews cache in HBPreviewGenerator when a setting changed and not in HBPreviewController git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7173 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/HBPreviewController.m | 3 --- macosx/HBPreviewGenerator.m | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m index 1313682c7..ef42b961e 100644 --- a/macosx/HBPreviewController.m +++ b/macosx/HBPreviewController.m @@ -247,9 +247,6 @@ typedef enum ViewMode : NSUInteger { { if (self.generator) { - // Purge the existing picture previews so they get recreated the next time - // they are needed. - [self.generator purgeImageCache]; [self switchViewToMode:ViewModePicturePreview]; [self displayPreview]; } diff --git a/macosx/HBPreviewGenerator.m b/macosx/HBPreviewGenerator.m index e1cf20e26..379d584f9 100644 --- a/macosx/HBPreviewGenerator.m +++ b/macosx/HBPreviewGenerator.m @@ -108,6 +108,10 @@ - (void) imagesSettingsDidChange { + // Purge the existing picture previews so they get recreated the next time + // they are needed. + + [self purgeImageCache]; [self.delegate reloadPreviews]; } -- cgit v1.2.3