Philipp Hörist pushed to branch master at gajim / gajim
Commits:
b8f08f1c by Philipp Hörist at 2024-04-16T23:09:48+02:00
cfix: MessageActionsBox: Set encryption state on action
- - - - -
1 changed file:
- gajim/gtk/message_actions_box.py
Changes:
=====================================
gajim/gtk/message_actions_box.py
=====================================
@@ -186,7 +186,10 @@ def switch_contact(self, contact: ChatContactT) -> None:
# changed circumstances, encryption is not applicable anymore
# (i.e. group chat configuration changed).
contact.settings.set('encryption', '')
+ encryption = ''
+ action = app.window.get_action('set-encryption')
+ action.set_state(GLib.Variant('s', encryption))
self._update_encryption_button(
encryption, is_available=encryption_available)
self._update_encryption_details_button(encryption)
@@ -302,6 +305,7 @@ def _change_encryption(self,
contact = self.get_current_contact()
contact.settings.set('encryption', new_state)
+ action.set_state(GLib.Variant('s', new_state))
self._update_encryption_button(new_state, is_available=True)
self._update_encryption_details_button(new_state)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/b8f08f1ccb936756882662d6e857f0d5e92b9715
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/b8f08f1ccb936756882662d6e857f0d5e92b9715
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]