diff options
author | hut <hut@lavabit.com> | 2010-01-19 21:55:36 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-19 21:55:36 +0100 |
commit | dca25f90afe5e9d8377744ac2efdbaddece52f61 (patch) | |
tree | a78267dbd5716eae10f082cfa75ae10f38cdfb5a /ranger | |
parent | efe2d7a3b0a347a0a8c19ed1d84b4022b2df410e (diff) | |
download | ranger-dca25f90afe5e9d8377744ac2efdbaddece52f61.tar.gz |
browsercolumn: performance improvement
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/browsercolumn.py | 4 |
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""" |