Permalink
Browse files

Example 76: When adding a chat window, decide whether or not to keep …

…buddy list visible.
  • Loading branch information...
1 parent d3f7c77 commit 839927047485745b90a7e670ec7c464b8938e68d Dusty Phillips committed Aug 17, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 orkiv/__main__.py
View
@@ -186,7 +186,9 @@ def get_chat_window(self, jabber_id):
return self.chat_windows[jabber_id]
def show_buddy_chat(self, jabber_id):
- self.remove_widget(self.buddy_list)
+ self.clear_widgets()
+ if self.mode == "wide":
+ self.add_widget(self.buddy_list)
self.add_widget(self.get_chat_window(jabber_id))
self.buddy_list.new_messages.discard(jabber_id)
self.buddy_list.force_list_view_update()

0 comments on commit 8399270

Please sign in to comment.