commit f81e73683eea8d35eb304f2afdac6397b16b995c
parent 941bcc495655b529b992d3f314db9b25977b3ad6
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Thu, 1 Oct 2009 12:50:47 -0400
Merge branch 'label-list-mode-auto-update' into next
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/lib/sup/modes/label-list-mode.rb b/lib/sup/modes/label-list-mode.rb
@@ -13,9 +13,15 @@ class LabelListMode < LineCursorMode
@text = []
@unread_only = false
super
+ UpdateManager.register self
regen_text
end
+ def cleanup
+ UpdateManager.unregister self
+ super
+ end
+
def lines; @text.length end
def [] i; @text[i] end
@@ -34,6 +40,10 @@ class LabelListMode < LineCursorMode
reload # make sure unread message counts are up-to-date
end
+ def handle_added_update sender, m
+ reload
+ end
+
protected
def toggle_show_unread_only