redraw banner when we are connected or disconencted. see #2702
This commit is contained in:
parent
e927ccdfc2
commit
8a8de540a0
1 changed files with 2 additions and 0 deletions
|
@ -709,6 +709,7 @@ class GroupchatControl(ChatControlBase):
|
||||||
def got_connected(self):
|
def got_connected(self):
|
||||||
gajim.gc_connected[self.account][self.room_jid] = True
|
gajim.gc_connected[self.account][self.room_jid] = True
|
||||||
ChatControlBase.got_connected(self)
|
ChatControlBase.got_connected(self)
|
||||||
|
self.draw_banner()
|
||||||
|
|
||||||
def got_disconnected(self):
|
def got_disconnected(self):
|
||||||
self.list_treeview.get_model().clear()
|
self.list_treeview.get_model().clear()
|
||||||
|
@ -721,6 +722,7 @@ class GroupchatControl(ChatControlBase):
|
||||||
# Note, since this method is called during initialization it is NOT safe
|
# Note, since this method is called during initialization it is NOT safe
|
||||||
# to call self.parent_win.redraw_tab here
|
# to call self.parent_win.redraw_tab here
|
||||||
ChatControlBase.got_disconnected(self)
|
ChatControlBase.got_disconnected(self)
|
||||||
|
self.draw_banner()
|
||||||
|
|
||||||
def draw_roster(self):
|
def draw_roster(self):
|
||||||
self.list_treeview.get_model().clear()
|
self.list_treeview.get_model().clear()
|
||||||
|
|
Loading…
Add table
Reference in a new issue