Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
-
1b74e15d
by wurstsalat at 2022-09-11T19:47:47+02:00
-
67c88b9b
by wurstsalat at 2022-09-11T19:48:19+02:00
2 changed files:
Changes:
| ... | ... | @@ -279,6 +279,9 @@ def _update_content(self) -> None: |
| 279 | 279 | self_contact = self._contact.get_self()
|
| 280 | 280 | if self_contact:
|
| 281 | 281 | self._ui.visitor_box.set_visible(self_contact.role.is_visitor)
|
| 282 | + return
|
|
| 283 | + |
|
| 284 | + self._ui.visitor_box.set_visible(False)
|
|
| 282 | 285 | |
| 283 | 286 | def _update_account_badge(self, account: str) -> None:
|
| 284 | 287 | if self._account_badge is not None:
|
| ... | ... | @@ -51,11 +51,13 @@ def switch_contact(self, contact: ChatContactT) -> None: |
| 51 | 51 | self._update()
|
| 52 | 52 | |
| 53 | 53 | def _update(self) -> None:
|
| 54 | + self.set_no_show_all(True)
|
|
| 55 | + self.hide()
|
|
| 56 | + |
|
| 54 | 57 | assert self._contact is not None
|
| 55 | 58 | client = app.get_client(self._contact.account)
|
| 56 | 59 | voice_requests = client.get_module('MUC').get_voice_requests(
|
| 57 | 60 | self._contact)
|
| 58 | - self.hide()
|
|
| 59 | 61 | if voice_requests:
|
| 60 | 62 | self.set_no_show_all(False)
|
| 61 | 63 | self.show_all()
|