feat(network): auto-detect system proxy and keep user overrides

This commit is contained in:
lzt404 committed 2026-09-18 18:17:31 +08:00
1 parent a372a819f8
commit 050dbddca4
15 files changed
+1109 -43

No files matched your search

+3 -1
View File
@@ -720,7 +720,9 @@ export function ConfigPanelPage() {
setBusyAction('network');
try {
const result = await invoke<CoreConfigSettings>('save_network_endpoint_settings', {
settings: { host, port, proxyUrl },
settings: networkDraftDirtyRef.current.proxyUrl
? { host, port, proxyUrl }
: { host, port },
});
clearDraftDirty('host');
clearDraftDirty('port');