Philipp Hörist pushed to branch master at gajim / gajim


Commits:
539100af by Philipp Hörist at 2024-12-07T19:58:38+01:00
cfix: Proxies: Add back system proxy option

- - - - -


2 changed files:

- gajim/gtk/accounts.py
- gajim/gtk/preferences.py


Changes:

=====================================
gajim/gtk/accounts.py
=====================================
@@ -961,7 +961,6 @@ def __init__(self, account: str) -> None:
                 name="proxy",
                 props={
                     "data": self._get_proxies(),
-                    "default-text": _("System"),
                     "button-icon-name": "preferences-system-symbolic",
                     "button-callback": self._on_proxy_edit,
                 },
@@ -1001,7 +1000,8 @@ def __init__(self, account: str) -> None:
 
     @staticmethod
     def _get_proxies() -> dict[str, str]:
-        proxies = {proxy: proxy for proxy in app.settings.get_proxies()}
+        proxies = {"": _("System")}
+        proxies.update({proxy: proxy for proxy in app.settings.get_proxies()})
         proxies["no-proxy"] = _("No Proxy")
         return proxies
 


=====================================
gajim/gtk/preferences.py
=====================================
@@ -972,7 +972,6 @@ def __init__(self, pref_window: Preferences) -> None:
                 name="global_proxy",
                 props={
                     "data": self._get_proxies(),
-                    "default-text": _("System"),
                     "button-icon-name": "preferences-system-symbolic",
                     "button-callback": self._on_proxy_edit,
                 },
@@ -1020,7 +1019,8 @@ def __init__(self, pref_window: Preferences) -> None:
 
     @staticmethod
     def _get_proxies() -> dict[str, str]:
-        proxies = {proxy: proxy for proxy in app.settings.get_proxies()}
+        proxies = {"": _("System")}
+        proxies.update({proxy: proxy for proxy in app.settings.get_proxies()})
         proxies["no-proxy"] = _("No Proxy")
         return proxies
 



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

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