summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-28 23:42:13 +0100
committerhut <hut@lavabit.com>2009-12-28 23:42:13 +0100
commit975028d45f2356f6947144a0da1ce280c381c836 (patch)
tree4e6c3883660e501ed2e64afd952bd9eb77e911b6
parentb19e53f9f6b25bfcc6c5e03f7078c8d0a14790e1 (diff)
downloadranger-975028d45f2356f6947144a0da1ce280c381c836.tar.gz
fixed slow loading of small directories
-rw-r--r--ranger/gui/widgets/filelist.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/gui/widgets/filelist.py b/ranger/gui/widgets/filelist.py
index 12f0c99a..08a95e18 100644
--- a/ranger/gui/widgets/filelist.py
+++ b/ranger/gui/widgets/filelist.py
@@ -120,6 +120,9 @@ class FileList(Widget, DisplayableContainer):
 
 		self.target.use()
 
+		if not self.target.load_content_if_outdated():
+			self.target.sort_if_outdated()
+
 		if not self.target.content_loaded:
 #			if self.target.force_load:
 #				self.target.stopped = False
@@ -152,9 +155,6 @@ class FileList(Widget, DisplayableContainer):
 				self.color_reset()
 				return
 
-		if not self.target.load_content_if_outdated():
-			self.target.sort_if_outdated()
-
 		if self.main_display:
 			base_color.append('maindisplay')