allow hidden for GLOBAL group

This commit is contained in:
pompurin404 2024-09-08 11:56:06 +08:00
parent 3449287e46
commit 2b1846d72c
No known key found for this signature in database

View File

@ -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
}