Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
afc5a11e by wurstsalat at 2023-04-23T11:59:23+02:00
cfix: ChatBanner: Disable share button for PM contacts

- - - - -


1 changed file:

- gajim/gtk/chat_banner.py


Changes:

=====================================
gajim/gtk/chat_banner.py
=====================================
@@ -329,7 +329,8 @@ def _update_account_badge(self) -> None:
 
     def _update_share_box(self) -> None:
         assert self._contact is not None
-        self._ui.share_menu_button.set_sensitive(True)
+        self._ui.share_menu_button.set_sensitive(
+            not self._contact.is_pm_contact)
         self._ui.jid_label.set_text(str(self._contact.jid))
 
     def _on_share_clicked(self, _button: Gtk.Button) -> None:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/afc5a11e6c2d620946e6bfd6ff9b37b22f52db48

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/afc5a11e6c2d620946e6bfd6ff9b37b22f52db48
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to