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


Commits:
a39f0a1b by wurstsalat at 2023-02-20T20:09:19+01:00
imprv: Windows: Add direct download for Gajim Portable updates

- - - - -


1 changed file:

- gajim/common/application.py


Changes:

=====================================
gajim/common/application.py
=====================================
@@ -33,6 +33,7 @@
 from nbxmpp.http import HTTPRequest
 from packaging.version import Version as V
 
+from gajim import IS_PORTABLE
 from gajim.common import app
 from gajim.common import configpaths
 from gajim.common import ged
@@ -324,7 +325,9 @@ def _on_update_response(self, request: HTTPRequest) -> None:
 
         data = json.loads(request.get_data())
         latest_version = data['current_version']
-        setup_url = data['current_setup_url']
+        setup_url = data['current_win_setup']
+        if IS_PORTABLE:
+            setup_url = data['current_win_portable_setup']
 
         if V(latest_version) > V(app.version):
             app.ged.raise_event(GajimUpdateAvailable(version=latest_version,



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

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/a39f0a1ba3cf321d616016e4661ce5562a340f1e
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to