mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 21:22:01 +00:00
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:
@@ -67,9 +67,11 @@ class Updater:
|
|||||||
logger.info("Current branch is not set, determining branch from version...")
|
logger.info("Current branch is not set, determining branch from version...")
|
||||||
if self.localVer.startswith("v") and "-pre" in self.localVer:
|
if self.localVer.startswith("v") and "-pre" in self.localVer:
|
||||||
logger.info("Current version determined to be pre-release")
|
logger.info("Current version determined to be pre-release")
|
||||||
|
manager.setSetting('branch', 1)
|
||||||
return 1
|
return 1
|
||||||
else:
|
else:
|
||||||
logger.info("Current version determined to be stable")
|
logger.info("Current version determined to be stable")
|
||||||
|
manager.setSetting('branch', 0)
|
||||||
return 0
|
return 0
|
||||||
return ver
|
return ver
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ const BranchSelect: FunctionComponent<{}> = () => {
|
|||||||
t('BranchSelect.update_channel.prerelease'),
|
t('BranchSelect.update_channel.prerelease'),
|
||||||
t('BranchSelect.update_channel.testing'),
|
t('BranchSelect.update_channel.testing'),
|
||||||
];
|
];
|
||||||
const [selectedBranch, setSelectedBranch] = useSetting<UpdateBranch>('branch', UpdateBranch.Prerelease);
|
const [selectedBranch, setSelectedBranch] = useSetting<UpdateBranch>('branch', UpdateBranch.Stable);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
// Returns numerical values from 0 to 2 (with current branch setup as of 8/28/22)
|
// Returns numerical values from 0 to 2 (with current branch setup as of 8/28/22)
|
||||||
|
|||||||
Reference in New Issue
Block a user