update will now only enable if gitversion is newer than local version

This commit is contained in:
raphael60650 2021-06-03 21:59:27 +02:00
parent 3e56c029ca
commit d17f4761e3

View file

@ -12,7 +12,7 @@ def check_update(self):
with open("version", "rb") as f:
locversion = json.load(f)
if gitversion["version"] != locversion["version"]:
if gitversion["version"] > locversion["version"]:
if messagebox.askyesno(self.translate("Mise à jour disponible !"), self.translate("Une mise à jour est disponible, souhaitez-vous l'installer ?") +
f"\n\nVersion : {locversion['version']}.{locversion['subversion']} -> {gitversion['version']}.{gitversion['subversion']}\n"+\
f"Changelog :\n{gitversion['changelog']}"):