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


Commits:
5ac6d3cc by cal0pteryx at 2026-04-11T20:26:20+02:00
imprv: Timezone update: Make it easier to disable updates

- - - - -


3 changed files:

- gajim/data/gui/activity_change_timezone.ui
- gajim/gtk/activity_page.py
- gajim/gtk/builder.pyi


Changes:

=====================================
gajim/data/gui/activity_change_timezone.ui
=====================================
@@ -71,8 +71,8 @@
             <property name="can-focus">0</property>
             <property name="spacing">12</property>
               <child>
-                <object class="GtkButton" id="ignore_button">
-                  <property name="label" translatable="yes">Ignore</property>
+                <object class="GtkButton" id="disable_button">
+                  <property name="label" translatable="yes">Disable 
Update</property>
                 </object>
               </child>
               <child>


=====================================
gajim/gtk/activity_page.py
=====================================
@@ -390,7 +390,7 @@ def __init__(self, item: TimezoneChanged) -> None:
         self._ui = get_builder("activity_change_timezone.ui")
 
         self._connect(self._ui.update_button, "clicked", self._on_update)
-        self._connect(self._ui.ignore_button, "clicked", self._on_ignore)
+        self._connect(self._ui.disable_button, "clicked", self._on_disable)
 
         self._event = item.get_event()
         self._client = app.get_client(self._event.account)
@@ -404,14 +404,15 @@ def __init__(self, item: TimezoneChanged) -> None:
 
     def _set_sensitive(self, sensitive: bool) -> None:
         self._ui.update_button.set_sensitive(sensitive)
-        self._ui.ignore_button.set_sensitive(sensitive)
+        self._ui.disable_button.set_sensitive(sensitive)
 
     def _on_update(self, _button: Gtk.Button) -> None:
         self._client.get_module("VCard4").update_timezone()
         self.emit("request-remove")
 
-    def _on_ignore(self, _button: Gtk.Button) -> None:
+    def _on_disable(self, _button: Gtk.Button) -> None:
         self._client.get_module("VCard4").ignore_timezone_change()
+        app.settings.set_account_setting(self._event.account, 
"update_timezone", False)
         self.emit("request-remove")
 
     def _on_client_state_changed(


=====================================
gajim/gtk/builder.pyi
=====================================
@@ -22,7 +22,7 @@ class ActivityChangeTimezoneBuilder(Builder):
     change_timezone_page: Gtk.Box
     old_timezone_label: Gtk.Label
     new_timezone_label: Gtk.Label
-    ignore_button: Gtk.Button
+    disable_button: Gtk.Button
     update_button: Gtk.Button
 
 class ActivityDefaultBuilder(Builder):



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

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