diff options
author | wurstsalat <mailtrash@posteo.de> | 2022-09-25 01:07:41 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2022-09-25 01:08:03 +0300 |
commit | a782329f5d4beaa93b97896eb77865dbe0adbde0 (patch) | |
tree | 34936b46a91dc884617663cd62c0d76571252a5f | |
parent | 938d79fbb4a9aa16dee200ed7d39b18b53fdbf31 (diff) |
fix: CreateGroupchatWindow: Fix Create button state when switching MUC type
Fixes #11162
-rw-r--r-- | gajim/gtk/groupchat_creation.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gajim/gtk/groupchat_creation.py b/gajim/gtk/groupchat_creation.py index ef792bc4c..1587efc6a 100644 --- a/gajim/gtk/groupchat_creation.py +++ b/gajim/gtk/groupchat_creation.py @@ -231,6 +231,10 @@ class CreateGroupchatWindow(Gtk.ApplicationWindow, EventHelper): def _on_public_private_toggled(self, _radiobutton: Gtk.RadioButton) -> None: is_public = self._ui.public_radio.get_active() + if is_public: + self._validate_jid(self._ui.address_entry.get_text()) + else: + self._ui.create_button.set_sensitive(True) self._ui.address_label.set_visible(is_public) self._ui.address_entry.set_visible(is_public) |