add cnMirror

This commit is contained in:
josc146
2023-05-21 10:49:45 +08:00
parent 8d730d71ba
commit 825cbd15f8
7 changed files with 31 additions and 9 deletions

View File

@@ -18,6 +18,7 @@ export type SettingsType = {
language: Language,
darkMode: boolean
autoUpdatesCheck: boolean
cnMirror: boolean
}
export const Settings: FC = observer(() => {
@@ -63,6 +64,17 @@ export const Settings: FC = observer(() => {
checkUpdate(true);
}}/>
}/>
{
commonStore.settings.language === 'zh' &&
<Labeled label={t('Use Tsinghua Pip Mirrors')} flex spaceBetween content={
<Switch checked={commonStore.settings.cnMirror}
onChange={(e, data) => {
commonStore.setSettings({
cnMirror: data.checked
});
}}/>
}/>
}
</div>
}/>
);