about summary refs log tree commit diff stats
path: root/ranger/fsobject/directory.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-22 16:19:20 +0100
committerhut <hut@lavabit.com>2009-12-22 16:19:20 +0100
commit85f45f481311ff3fb241c89c824ccc80583cd99a (patch)
treea7b87ebf70f8d4376448673b56b9a570fb8163b9 /ranger/fsobject/directory.py
parent4fb1670e4d87aecf2eee8a1ba4903f9d8cdae914 (diff)
downloadranger-85f45f481311ff3fb241c89c824ccc80583cd99a.tar.gz
some clean ups
Diffstat (limited to 'ranger/fsobject/directory.py')
-rw-r--r--ranger/fsobject/directory.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index 2478616d..5ad07ef1 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -16,7 +16,6 @@ class NoDirectoryGiven(Exception):
 	pass
 
 class Directory(SuperClass, SettingsAware):
-	scheduled = False
 	enterable = False
 	loading = False
 
@@ -97,6 +96,11 @@ class Directory(SuperClass, SettingsAware):
 		it takes rather long.
 		"""
 
+		self.load_once()
+
+		if schedule is None:
+			schedule = self.size > 30
+
 		if not self.loading:
 			if schedule and self.fm:
 				self.loading = True