mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-21 09:42:09 +08:00
fix(ui): prevent proxy update when disabled #6849
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user