From f015e00561636a3b45369eb2127b73b7393b9291 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 15 Jul 2022 12:57:51 -0400 Subject: more updater fixes --- backend/updater.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'backend/updater.py') diff --git a/backend/updater.py b/backend/updater.py index c0379b6f..4c3cd715 100644 --- a/backend/updater.py +++ b/backend/updater.py @@ -59,7 +59,7 @@ class Updater: return { "current": self.localVer, "remote": self.remoteVer, - "updatable": self.remoteVer != None + "updatable": self.localVer != None } else: return {"current": "unknown", "updatable": False} @@ -103,8 +103,7 @@ class Updater: raw += len(c) new_progress = round((raw / total) * 100) if progress != new_progress: - if new_progress - progress>= 2: - self.context.loop.create_task(tab.evaluate_js(f"window.DeckyUpdater.updateProgress({progress})", False, False)) + self.context.loop.create_task(tab.evaluate_js(f"window.DeckyUpdater.updateProgress({new_progress})", False, False, False)) progress = new_progress with open(path.join(getcwd(), ".loader.version"), "w") as out: @@ -119,4 +118,3 @@ class Updater: async def do_restart(self): call(["systemctl", "daemon-reload"]) call(["systemctl", "restart", "plugin_loader"]) - exit(0) -- cgit v1.2.3