diff --git a/src/components/shared/proxy-control-switches.tsx b/src/components/shared/proxy-control-switches.tsx index 3320998b9..837312e8b 100644 --- a/src/components/shared/proxy-control-switches.tsx +++ b/src/components/shared/proxy-control-switches.tsx @@ -114,7 +114,7 @@ const ProxyControlSwitches = ({ const { verge, mutateVerge, patchVerge } = useVerge() const { installServiceAndRestartCore } = useServiceInstaller() const { uninstallServiceAndRestartCore } = useServiceUninstaller() - const { configState: systemProxyConfigState, toggleSystemProxy } = + const { indicator: systemProxyIndicator, toggleSystemProxy } = useSystemProxyState() const { isServiceOk, isTunModeAvailable, mutateSystemState } = useSystemState() @@ -169,12 +169,12 @@ const ProxyControlSwitches = ({ {isSystemProxyMode && ( sysproxyRef.current?.open()} onToggle={(value) => toggleSystemProxy(value)} onError={onError} - highlight={systemProxyConfigState} + highlight={systemProxyIndicator} /> )}