about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-19 21:55:36 +0100
committerhut <hut@lavabit.com>2010-01-19 21:55:36 +0100
commitdca25f90afe5e9d8377744ac2efdbaddece52f61 (patch)
treea78267dbd5716eae10f082cfa75ae10f38cdfb5a
parentefe2d7a3b0a347a0a8c19ed1d84b4022b2df410e (diff)
downloadranger-dca25f90afe5e9d8377744ac2efdbaddece52f61.tar.gz
browsercolumn: performance improvement
-rw-r--r--ranger/gui/widgets/browsercolumn.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index c8a0cfe3..fe92ecb5 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -145,8 +145,8 @@ class BrowserColumn(Pager, Widget):
 			self.last_redraw_time = time()
 
 	def _preview_this_file(self, target):
-		return not PREVIEW_BLACKLIST.search(target.basename) \
-				and self.settings.preview_files
+		return self.settings.preview_files \
+				and not PREVIEW_BLACKLIST.search(target.basename)
 
 	def _draw_file(self):
 		"""Draw a preview of the file, if the settings allow it"""