diff options
author | hut <hut@lavabit.com> | 2010-03-22 18:37:25 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-03-22 18:37:25 +0100 |
commit | fe14923beb97ec60c65e5eb6f5cb9ee0bc303e15 (patch) | |
tree | d880739183180da891b3e3b74fbce84368c52953 | |
parent | fde932f216932009fc7cdb1b362012651c03468f (diff) | |
download | ranger-fe14923beb97ec60c65e5eb6f5cb9ee0bc303e15.tar.gz |
widgets.browsercolumn: don't load preview when its turned off
-rw-r--r-- | ranger/gui/widgets/browsercolumn.py | 3 |
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 |