mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 13:21:59 +00:00
port updater to ws, also small refactoring
This commit is contained in:
@@ -3,7 +3,7 @@ import { FunctionComponent } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import Logger from '../../../../logger';
|
||||
import { callUpdaterMethod } from '../../../../updater';
|
||||
import { checkForUpdates } from '../../../../updater';
|
||||
import { useSetting } from '../../../../utils/hooks/useSetting';
|
||||
|
||||
const logger = new Logger('BranchSelect');
|
||||
@@ -37,7 +37,7 @@ const BranchSelect: FunctionComponent<{}> = () => {
|
||||
selectedOption={selectedBranch}
|
||||
onChange={async (newVal) => {
|
||||
await setSelectedBranch(newVal.data);
|
||||
callUpdaterMethod('check_for_updates');
|
||||
checkForUpdates();
|
||||
logger.log('switching branches!');
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user