about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorseebye <seebye@users.noreply.github.com>2018-08-28 21:20:43 +0200
committerseebye <seebye@users.noreply.github.com>2018-08-28 21:20:43 +0200
commitaa3033c287aa461a161782c07d508b946eac5ed7 (patch)
tree45c59b22483550c805ecab6fa54744691923dd43 /ranger
parentc0ecc9e71bbb40134c73cd1421b18785a0bd5ac3 (diff)
downloadranger-aa3033c287aa461a161782c07d508b946eac5ed7.tar.gz
quit image displayer on changing preview_images_method
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/fm.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/core/fm.py b/ranger/core/fm.py
index 46336e92..43001e8b 100644
--- a/ranger/core/fm.py
+++ b/ranger/core/fm.py
@@ -102,6 +102,8 @@ class FM(Actions,  # pylint: disable=too-many-instance-attributes
         self.rifle.reload_config()
 
         def set_image_displayer():
+            if self.image_displayer:
+                self.image_displayer.quit()
             self.image_displayer = self._get_image_displayer()
         set_image_displayer()
         self.settings.signal_bind('setopt.preview_images_method', set_image_displayer,