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

View File

@@ -21,7 +21,7 @@ const BranchSelect: FunctionComponent<{}> = () => {
t('BranchSelect.update_channel.prerelease'),
t('BranchSelect.update_channel.testing'),
];
const [selectedBranch, setSelectedBranch] = useSetting<UpdateBranch>('branch', UpdateBranch.Prerelease);
const [selectedBranch, setSelectedBranch] = useSetting<UpdateBranch>('branch', UpdateBranch.Stable);
return (
// Returns numerical values from 0 to 2 (with current branch setup as of 8/28/22)