mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-04 20:00:00 +08:00
feat: Save proxy setting
This commit is contained in:
parent
29bf0937ca
commit
b147d97a3d
@ -52,10 +52,8 @@ const GeneralSettings: FC = () => {
|
|||||||
dispatch(setProxyMode(mode))
|
dispatch(setProxyMode(mode))
|
||||||
if (mode === 'system') {
|
if (mode === 'system') {
|
||||||
window.api.setProxy('system')
|
window.api.setProxy('system')
|
||||||
dispatch(_setProxyUrl(undefined))
|
|
||||||
} else if (mode === 'none') {
|
} else if (mode === 'none') {
|
||||||
window.api.setProxy(undefined)
|
window.api.setProxy(undefined)
|
||||||
dispatch(_setProxyUrl(undefined))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user