diff options
| author | iKira <[email protected]> | 2026-03-18 10:06:33 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-18 10:06:33 +0800 |
| commit | d1e4e8f6b73f61f83c8771cb9dc2fde602e0f2fa (patch) | |
| tree | de4627eb601624bc5854bdabc496a07faa98d6f6 | |
| parent | f777d256bf0d059c2783d77f1d02dff391c6eab0 (diff) | |
chore: Adapt the `hidden` field for proxy groups
Adapts to the `hidden` field in policy groups, the GUI does not display proxy groups tags where `hidden: true`.
| -rw-r--r-- | src/store/proxies.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/store/proxies.tsx b/src/store/proxies.tsx index 7f79694..8164b90 100644 --- a/src/store/proxies.tsx +++ b/src/store/proxies.tsx @@ -388,7 +388,9 @@ function retrieveGroupNamesFrom(proxies: Record<string, ProxyItem>) { for (const prop in proxies) { const p = proxies[prop]; if (p.all && Array.isArray(p.all)) { - groupNames.push(prop); + if (!p.hidden) { + groupNames.push(prop); + } if (prop === 'GLOBAL') { globalAll = Array.from(p.all); } |
