fix(ui): prevent proxy update when disabled #6849

This commit is contained in:
Tunglies
2026-04-19 23:11:07 +08:00
parent 72394eb9b7
commit bf2fccac1f
@@ -156,6 +156,9 @@ export const SysproxyViewer = forwardRef<DialogRef>((props, ref) => {
}
prevMixedPortRef.current = mixedPort
if (!enabled) {
return
}
const updateProxy = async () => {
try {
@@ -174,7 +177,7 @@ export const SysproxyViewer = forwardRef<DialogRef>((props, ref) => {
}
updateProxy()
}, [clashConfig?.mixedPort, value.pac, invalidateProxyState])
}, [clashConfig?.mixedPort, enabled, value.pac, invalidateProxyState])
const { systemProxyAddress } = useAppData()