Skip to content

Commit

Permalink
allow hidden for GLOBAL group
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Sep 8, 2024
1 parent 3449287 commit 2b1846d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/core/mihomoApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ export const mihomoGroups = async (): Promise<IMihomoMixedGroup[]> => {
})
if (!groups.find((group) => group.name === 'GLOBAL')) {
const newGlobal = proxies.proxies['GLOBAL'] as IMihomoGroup
const newAll = newGlobal.all.map((name) => proxies.proxies[name])
groups.push({ ...newGlobal, all: newAll })
if (!newGlobal.hidden) {
const newAll = newGlobal.all.map((name) => proxies.proxies[name])
groups.push({ ...newGlobal, all: newAll })
}
}
return groups
}
Expand Down

0 comments on commit 2b1846d

Please sign in to comment.