diff --git a/src/main/core/mihomoApi.ts b/src/main/core/mihomoApi.ts index c3dc3a24..17ff21b1 100644 --- a/src/main/core/mihomoApi.ts +++ b/src/main/core/mihomoApi.ts @@ -94,8 +94,10 @@ export const mihomoGroups = async (): Promise => { }) 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 }