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


Commits:
c73a4f25 by wurstsalat at 2025-06-21T14:20:52+02:00
cfix: Group chat creation: Fix button spinner; remove heading

- - - - -


2 changed files:

- gajim/data/gui/groupchat_creation.ui
- gajim/gtk/groupchat_creation.py


Changes:

=====================================
gajim/data/gui/groupchat_creation.ui
=====================================
@@ -16,15 +16,6 @@
             <property name="width-request">400</property>
             <property name="orientation">vertical</property>
             <property name="spacing">18</property>
-            <child>
-              <object class="GtkLabel">
-                <property name="label" translatable="yes">Create Group 
Chat</property>
-                <property name="wrap">1</property>
-                <style>
-                  <class name="title-1"/>
-                </style>
-              </object>
-            </child>
             <child>
               <object class="GtkGrid" id="grid">
                 <property name="margin-top">12</property>
@@ -295,7 +286,9 @@
                 <property name="margin-top">12</property>
                 <property name="spacing">12</property>
                 <child>
-                  <object class="AdwSpinner" id="spinner"/>
+                  <object class="AdwSpinner" id="spinner">
+                    <property name="visible">0</property>
+                  </object>
                 </child>
                 <child>
                   <object class="GtkButton" id="create_button">


=====================================
gajim/gtk/groupchat_creation.py
=====================================
@@ -177,9 +177,8 @@ def _is_jid_valid(self, text: str) -> bool:
         return True
 
     def _set_processing_state(self, enabled: bool) -> None:
-        if enabled:
-            self._ui.create_button.set_sensitive(False)
-
+        self._ui.spinner.set_visible(enabled)
+        self._ui.create_button.set_sensitive(not enabled)
         self._ui.grid.set_sensitive(not enabled)
 
     def _unset_info(self) -> None:



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

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/c73a4f252fae42ed7327c3fc5fd108e315bfadc7
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]

Reply via email to