summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parentefe2d7a3b0a347a0a8c19ed1d84b4022b2df410e (diff)
downloadranger-dca25f90afe5e9d8377744ac2efdbaddece52f61.tar.gz
browsercolumn: performance improvement
Diffstat (limited to 'ranger')
-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"""
uffered-stdin.mu?h=main&id=4ca73eb66a57f32085be56c64ce316b82084602f'>4ca73eb6 ^
5b698455 ^
4ca73eb6 ^
7d2c2d55 ^


4ca73eb6 ^



3a0be565 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28