summaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
authoriKira <[email protected]>2026-03-18 10:06:33 +0800
committerGitHub <[email protected]>2026-03-18 10:06:33 +0800
commitd1e4e8f6b73f61f83c8771cb9dc2fde602e0f2fa (patch)
treede4627eb601624bc5854bdabc496a07faa98d6f6 /src/store
parentf777d256bf0d059c2783d77f1d02dff391c6eab0 (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`.
Diffstat (limited to 'src/store')
-rw-r--r--src/store/proxies.tsx4
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);
}