support hidden group

This commit is contained in:
pompurin404 2024-08-08 17:55:14 +08:00
parent 9bdee84399
commit afaeea2aac
No known key found for this signature in database

View File

@ -24,12 +24,14 @@ const Proxies: React.FC = () => {
const globalGroup = proxies.proxies['GLOBAL'] as IMihomoGroup
for (const global of globalGroup.all) {
if (isGroup(proxies.proxies[global])) {
if (proxies.proxies[global].hidden) continue
groups.push(proxies.proxies[global] as IMihomoGroup)
}
}
Object.keys(proxies.proxies).forEach((key) => {
if (isGroup(proxies.proxies[key])) {
if (!groups.find((group) => group.name === key)) {
if (proxies.proxies[key].hidden) return
groups.push(proxies.proxies[key] as IMihomoGroup)
}
}