Philipp Hörist pushed to branch mainwindow at gajim / gajim
Commits:
-
d48d1772
by lovetox at 2021-03-02T20:28:51+01:00
1 changed file:
Changes:
| ... | ... | @@ -992,6 +992,20 @@ def is_connected(self) -> bool: |
| 992 | 992 |
def is_connected(self, value: bool) -> None:
|
| 993 | 993 |
app.gc_connected[self.account][self.room_jid] = value
|
| 994 | 994 |
|
| 995 |
+ def got_disconnected(self):
|
|
| 996 |
+ self.xml.formattings_button.set_sensitive(False)
|
|
| 997 |
+ |
|
| 998 |
+ self.roster.enable_sort(False)
|
|
| 999 |
+ self.roster.clear()
|
|
| 1000 |
+ |
|
| 1001 |
+ self.is_connected = False
|
|
| 1002 |
+ ChatControlBase.got_disconnected(self)
|
|
| 1003 |
+ |
|
| 1004 |
+ con = app.connections[self.account]
|
|
| 1005 |
+ con.get_module('Chatstate').remove_delay_timeout(self.contact)
|
|
| 1006 |
+ |
|
| 1007 |
+ self.update_actions()
|
|
| 1008 |
+ |
|
| 995 | 1009 |
def leave(self, reason=None):
|
| 996 | 1010 |
self.got_disconnected()
|
| 997 | 1011 |
self._close_control(reason=reason)
|