When decky is uncertain of branch, set the setting to match the guess (#480)

* If branch setting is missing, set it using the 'guess' from backend

* Make the frontend default to stable branch like the backend
This commit is contained in:
Party Wumpus
2023-06-15 13:53:02 +01:00
committed by GitHub
parent d0b7d1a4a6
commit e8dfe5a87d
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -67,9 +67,11 @@ class Updater:
logger.info("Current branch is not set, determining branch from version...")
if self.localVer.startswith("v") and "-pre" in self.localVer:
logger.info("Current version determined to be pre-release")
manager.setSetting('branch', 1)
return 1
else:
logger.info("Current version determined to be stable")
manager.setSetting('branch', 0)
return 0
return ver