Skip to content
Browse files

Example 71: Add a method for forcing the list view to redraw itself.

This really shouldn't be necessary given a well designed and used API, but it's the easiest way to work around the deficiencies.
  • Loading branch information...
1 parent de6e02f commit 92410d41f1f2cd36bf78c0aa11eda424590a61dd @buchuki committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 orkiv/__main__.py
View
4 orkiv/__main__.py
@@ -101,6 +101,10 @@ def __init__(self):
self.list_view.adapter.data = sorted(self.app.xmpp.client_roster.keys())
self.new_messages = set()
+ def force_list_view_update(self):
+ self.list_view.adapter.update_for_new_data()
+ self.list_view._trigger_reset_populate()
+
def roster_converter(self, index, jabberid):
result = {
"jabberid": jabberid,

0 comments on commit 92410d4

Please sign in to comment.
Something went wrong with that request. Please try again.