fix: sync system proxy status indicator with hotkey

This commit is contained in:
wonfen
2025-03-04 06:57:42 +08:00
parent 73310b466b
commit 44ca513241
2 changed files with 13 additions and 8 deletions

View File

@@ -166,9 +166,12 @@ const Layout = () => {
}),
// verge 配置更新监听
addListener("verge://refresh-verge-config", () =>
mutate("getVergeConfig"),
),
addListener("verge://refresh-verge-config", () => {
mutate("getVergeConfig");
// 添加对系统代理状态的刷新
mutate("getSystemProxy");
mutate("getAutotemProxy");
}),
// 通知消息监听
addListener("verge://notice-message", ({ payload }) =>