diff options
| author | Larvan2 <[email protected]> | 2026-03-22 13:03:41 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-22 13:03:41 +0800 |
| commit | b489145e95b26119af697e39255aaad1ed8ecb03 (patch) | |
| tree | de4627eb601624bc5854bdabc496a07faa98d6f6 /src | |
| parent | 7e7c5d4a79d944da50c69bad4ab1c5e366c58e7c (diff) | |
| parent | d1e4e8f6b73f61f83c8771cb9dc2fde602e0f2fa (diff) | |
Merge pull request #115 from iKira/iKira-patch-1
chore: Adapt the `hidden` field for proxy groups
Diffstat (limited to 'src')
| -rw-r--r-- | src/store/proxies.tsx | 4 | ||||
| -rw-r--r-- | src/store/types.ts | 1 |
2 files changed, 4 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); } diff --git a/src/store/types.ts b/src/store/types.ts index 8ea0d81..2174ae3 100644 --- a/src/store/types.ts +++ b/src/store/types.ts @@ -66,6 +66,7 @@ export type ProxyItem = { providerName?: string; all?: string[]; now?: string; + hidden?: boolean; }; export type ProxiesMapping = Record<string, ProxyItem>; export type DelayMapping = Record< |
