Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: 1b74e15d by wurstsalat at 2022-09-11T19:47:47+02:00 cfix: ChatBanner: Correctly toggle visitor box visibility
- - - - - 67c88b9b by wurstsalat at 2022-09-11T19:48:19+02:00 cfix: VoiceRequestsButton: Correctly toggle button visibility
- - - - -
2 changed files:
- gajim/gtk/chat_banner.py - gajim/gtk/groupchat_voice_requests_button.py
Changes:
===================================== gajim/gtk/chat_banner.py ===================================== @@ -279,6 +279,9 @@ def _update_content(self) -> None: self_contact = self._contact.get_self() if self_contact: self._ui.visitor_box.set_visible(self_contact.role.is_visitor) + return + + self._ui.visitor_box.set_visible(False)
def _update_account_badge(self, account: str) -> None: if self._account_badge is not None:
===================================== gajim/gtk/groupchat_voice_requests_button.py ===================================== @@ -51,11 +51,13 @@ def switch_contact(self, contact: ChatContactT) -> None: self._update()
def _update(self) -> None: + self.set_no_show_all(True) + self.hide() + assert self._contact is not None client = app.get_client(self._contact.account) voice_requests = client.get_module('MUC').get_voice_requests( self._contact) - self.hide() if voice_requests: self.set_no_show_all(False) self.show_all()
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/9c05702db40503c2452252b074d8f738...