From dca25f90afe5e9d8377744ac2efdbaddece52f61 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 19 Jan 2010 21:55:36 +0100 Subject: browsercolumn: performance improvement --- ranger/gui/widgets/browsercolumn.py | 4 ++-- 1 file 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""" -- cgit 1.4.1-2-gfad0