diff options
author | hut <hut@lavabit.com> | 2013-02-16 15:44:18 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-16 15:44:53 +0100 |
commit | 263be09587bd1fe2a6e9e30176983e684e1f69d7 (patch) | |
tree | 39c366d4c7f0729524a121fa84939eda9071b40f /ranger | |
parent | 79ac442b161aee65a670fff3cdbf1075a5b3ece9 (diff) | |
download | ranger-263be09587bd1fe2a6e9e30176983e684e1f69d7.tar.gz |
fsobject.file: preview images even when preview_script is off
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/fsobject/file.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/fsobject/file.py b/ranger/fsobject/file.py index 5831ed3f..9923f559 100644 --- a/ranger/fsobject/file.py +++ b/ranger/fsobject/file.py @@ -71,7 +71,9 @@ class File(FileSystemObject): if self.fm.settings.preview_script and \ self.fm.settings.use_preview_script: return True - if self.image or self.container: + if self.image and self.fm.settings.preview_images: + return True + if self.container: return False if PREVIEW_WHITELIST.search(self.basename): return True |