MacGui: remove che previews cache in HBPreviewGenerator when a setting changed and...
authorritsuka <damiog@gmail.com>
Wed, 13 May 2015 16:30:46 +0000 (16:30 +0000)
committerritsuka <damiog@gmail.com>
Wed, 13 May 2015 16:30:46 +0000 (16:30 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7173 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/HBPreviewController.m
macosx/HBPreviewGenerator.m

index 1313682c7475e3575928e7f5977b367d52f073bf..ef42b961e6c8cfc2175ff0f9fbd607a882c5adfb 100644 (file)
@@ -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];
     }
index e1cf20e26de781b2b8a7f1ebc03ec19ae8cff0d3..379d584f90a9261dcda9d255c7fceee5a1d5d345 100644 (file)
 
 - (void) imagesSettingsDidChange
 {
+    // Purge the existing picture previews so they get recreated the next time
+    // they are needed.
+
+    [self purgeImageCache];
     [self.delegate reloadPreviews];
 }