summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-22 18:37:25 +0100
committerhut <hut@lavabit.com>2010-03-22 18:37:25 +0100
commitfe14923beb97ec60c65e5eb6f5cb9ee0bc303e15 (patch)
treed880739183180da891b3e3b74fbce84368c52953
parentfde932f216932009fc7cdb1b362012651c03468f (diff)
downloadranger-fe14923beb97ec60c65e5eb6f5cb9ee0bc303e15.tar.gz
widgets.browsercolumn: don't load preview when its turned off
-rw-r--r--ranger/gui/widgets/browsercolumn.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index 6e6f2f5e..4575b42c 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -124,7 +124,8 @@ class BrowserColumn(Pager):
 			self.need_redraw = True
 			self.old_dir = self.target
 
-		if self.target and self.target.is_directory:
+		if self.target and self.target.is_directory \
+				and self.settings.preview_directories:
 			if self.target.pointed_obj != self.old_cf:
 				self.need_redraw = True
 				self.old_cf = self.target.pointed_obj
ik.com> 2018-11-26 00:26:20 -0800 4780' href='/akkartik/mu/commit/subx/examples/ex1.subx?h=main&id=e5cbbea435524ecd77f4ebabaab873720c64464f'>e5cbbea4 ^
aef4efb9 ^
ecfbbfb5 ^
8bbafb13 ^
ecfbbfb5 ^
aef4efb9 ^
ee9a9237 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18