commit d095234d7a682a8cb63debae87b327912ba1cf59
parent 763615854b57eb6bcb50af43aba59f0b5290d25a
Author: Damien Leone <damien.leone@fensalir.fr>
Date: Sun, 27 Feb 2011 17:35:59 +0100
Add an option to disable automatic threads loading when scrolling down for slow CPUs
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/sup.rb b/lib/sup.rb
@@ -301,6 +301,7 @@ EOS
:confirm_top_posting => true,
:jump_to_open_message => true,
:discard_snippets_from_encrypted_messages => false,
+ :load_more_threads_when_scrolling => true,
:default_attachment_save_dir => "",
:sent_source => "sup://sent",
:poll_interval => 300,
diff --git a/lib/sup/modes/line-cursor-mode.rb b/lib/sup/modes/line-cursor-mode.rb
@@ -177,7 +177,7 @@ private
end
def call_load_more_callbacks size
- @load_more_q.push size
+ @load_more_q.push size if $config[:load_more_threads_when_scrolling]
end
end