summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-11-04 14:59:44 -0400
committerhut <hut@lepus.uberspace.de>2016-11-04 14:59:44 -0400
commitbc67078df6f118ed98fc1ea6c31fea9ea27c2cc3 (patch)
tree99e9418b299998ffb20c56187cefd51d6bf66613 /ranger
parentcd074b321a94edcd0c6715f10b46c2465fae309e (diff)
parent14c13cbd17a1d10bf4101de518e1908905d10e2c (diff)
downloadranger-bc67078df6f118ed98fc1ea6c31fea9ea27c2cc3.tar.gz
Merge branch 'preview_method_set_fix' of https://github.com/Vifon/ranger
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/fm.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/ranger/core/fm.py b/ranger/core/fm.py
index fb6dd6b9..a08de2e1 100644
--- a/ranger/core/fm.py
+++ b/ranger/core/fm.py
@@ -15,6 +15,7 @@ import sys
 import ranger.api
 from ranger.core.actions import Actions
 from ranger.core.tab import Tab
+from ranger.container import settings
 from ranger.container.tags import Tags, TagsDummy
 from ranger.gui.ui import UI
 from ranger.container.bookmarks import Bookmarks
@@ -97,7 +98,13 @@ class FM(Actions, SignalDispatcher):
             rifleconf = self.relpath('config/rifle.conf')
         self.rifle = Rifle(rifleconf)
         self.rifle.reload_config()
-        self.image_displayer = self._get_image_displayer()
+
+        def set_image_displayer():
+            self.image_displayer = self._get_image_displayer()
+        set_image_displayer()
+        self.settings.signal_bind('setopt.preview_images_method',
+                set_image_displayer,
+                priority=settings.SIGNAL_PRIORITY_AFTER_SYNC)
 
         if not ranger.arg.clean and self.tags is None:
             self.tags = Tags(self.confpath('tagged'))