summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-02-09 11:35:32 +0100
committerhut <hut@lavabit.com>2010-02-09 11:35:32 +0100
commitdb1721dd9c6fdae2de44a4c8b39cc310a37cbdc0 (patch)
tree03c0c1f2d26d1b3d1e458abaf80166ca0bb6cae4 /ranger
parentf40dc67a805bc7b82c75756a17eaa1b9a7756600 (diff)
downloadranger-db1721dd9c6fdae2de44a4c8b39cc310a37cbdc0.tar.gz
fixed #54: max_dirsize_for_autopreview option not working
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/options.py1
-rw-r--r--ranger/gui/widgets/browsercolumn.py9
-rw-r--r--ranger/shared/settings.py2
3 files changed, 1 insertions, 11 deletions
diff --git a/ranger/defaults/options.py b/ranger/defaults/options.py
index 0b57b259..71b4cad2 100644
--- a/ranger/defaults/options.py
+++ b/ranger/defaults/options.py
@@ -10,7 +10,6 @@ colorscheme = colorschemes.default
 
 max_history_size = 20
 scroll_offset = 2
-max_dirsize_for_autopreview = None
 preview_files = True
 flushinput = True
 
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index 24ca6e1b..7ce3ae1f 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -180,15 +180,6 @@ class BrowserColumn(Pager, Widget):
 		self.win.move(0, 0)
 
 		if not self.target.content_loaded:
-			maxdirsize = self.settings.max_dirsize_for_autopreview
-			if not self.target.force_load and maxdirsize is not None \
-					and self.target.accessible \
-					and self.target.size > maxdirsize:
-				self.color(base_color, 'error')
-				self.win.addnstr("no preview", self.wid)
-				self.color_reset()
-				return
-
 			self.color(base_color)
 			self.win.addnstr("...", self.wid)
 			self.color_reset()
diff --git a/ranger/shared/settings.py b/ranger/shared/settings.py
index 3d634652..d5ef3be5 100644
--- a/ranger/shared/settings.py
+++ b/ranger/shared/settings.py
@@ -18,7 +18,7 @@ directories_first sort reverse
 preview_files max_history_size colorscheme
 collapse_preview update_title
 hidden_filter flushinput
-max_dirsize_for_autopreview autosave_bookmarks
+autosave_bookmarks
 """.split()
 
 # -- globalize the settings --