* [sup-devel] [PATCH] line-cursor-mode: Add an option to disable automatic threads loading when scrolling down for slow CPUs
@ 2011-02-27 16:58 Damien Leone
2011-03-07 21:23 ` Damien Leone
0 siblings, 1 reply; 2+ messages in thread
From: Damien Leone @ 2011-02-27 16:58 UTC (permalink / raw)
To: sup-devel
[-- Attachment #1.1.1: Type: text/plain, Size: 365 bytes --]
Sup guys,
I run Sup on a Pogoplug-like device which has a slow CPU and I'm
always annoyed when I scroll down to reach an entry and then
everything stalls because some more threads are loading.
This patch adds an option to disable this behavior.
Cheers,
--
Damien Leone <damien.leone@fensalir.fr>
Web: http://dleone.fensalir.fr/
GPG: 0x82EB4DDF
[-- Attachment #1.1.2: 0001-line-cursor-mode-Add-an-option-to-disable-automatic-.patch --]
[-- Type: application/octet-stream, Size: 1249 bytes --]
From edbe3b4811c66c4764c3c69ef80dfe5297e22173 Mon Sep 17 00:00:00 2001
From: Damien Leone <damien.leone@fensalir.fr>
Date: Sun, 27 Feb 2011 17:35:59 +0100
Subject: [PATCH] line-cursor-mode: Add an option to disable automatic threads loading when scrolling down for slow CPUs
---
lib/sup.rb | 1 +
lib/sup/modes/line-cursor-mode.rb | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/sup.rb b/lib/sup.rb
index 1a15914..8cc7dee 100644
--- a/lib/sup.rb
+++ b/lib/sup.rb
@@ -328,6 +328,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
index 047444b..aad6fe1 100644
--- 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
--
1.7.2.3
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [sup-devel] [PATCH] line-cursor-mode: Add an option to disable automatic threads loading when scrolling down for slow CPUs
2011-02-27 16:58 [sup-devel] [PATCH] line-cursor-mode: Add an option to disable automatic threads loading when scrolling down for slow CPUs Damien Leone
@ 2011-03-07 21:23 ` Damien Leone
0 siblings, 0 replies; 2+ messages in thread
From: Damien Leone @ 2011-03-07 21:23 UTC (permalink / raw)
To: sup-devel
Pushed.
--
Damien Leone <damien.leone@fensalir.fr>
Web: http://dleone.fensalir.fr/
GPG: 0x82EB4DDF
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-07 21:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-27 16:58 [sup-devel] [PATCH] line-cursor-mode: Add an option to disable automatic threads loading when scrolling down for slow CPUs Damien Leone
2011-03-07 21:23 ` Damien Leone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox