Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
deecc8e2 by wurstsalat at 2025-03-09T17:05:21+01:00
fix: ContactNameWidget: Add more conditions for enabling edit mode
Fixes #12221
- - - - -
1 changed file:
- gajim/gtk/contact_name_widget.py
Changes:
=====================================
gajim/gtk/contact_name_widget.py
=====================================
@@ -55,7 +55,14 @@ def __init__(
self._edit_button.set_tooltip_text(_("Edit display name…"))
self._connect(self._edit_button, "clicked", self._on_edit_clicked)
- if isinstance(self._contact, GroupchatParticipant) or not edit_mode:
+ if (
+ isinstance(self._contact, GroupchatParticipant)
+ or (
+ isinstance(self._contact, BareContact)
+ and not self._contact.is_in_roster
+ )
+ or not edit_mode
+ ):
self._edit_button.set_visible(False)
button_box.append(self._edit_button)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/deecc8e2945ab4648bc6c98c21ff6bf7f5ee02c9
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/deecc8e2945ab4648bc6c98c21ff6bf7f5ee02c9
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]