mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
support hidden group
This commit is contained in:
parent
9bdee84399
commit
afaeea2aac
@ -24,12 +24,14 @@ const Proxies: React.FC = () => {
|
|||||||
const globalGroup = proxies.proxies['GLOBAL'] as IMihomoGroup
|
const globalGroup = proxies.proxies['GLOBAL'] as IMihomoGroup
|
||||||
for (const global of globalGroup.all) {
|
for (const global of globalGroup.all) {
|
||||||
if (isGroup(proxies.proxies[global])) {
|
if (isGroup(proxies.proxies[global])) {
|
||||||
|
if (proxies.proxies[global].hidden) continue
|
||||||
groups.push(proxies.proxies[global] as IMihomoGroup)
|
groups.push(proxies.proxies[global] as IMihomoGroup)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Object.keys(proxies.proxies).forEach((key) => {
|
Object.keys(proxies.proxies).forEach((key) => {
|
||||||
if (isGroup(proxies.proxies[key])) {
|
if (isGroup(proxies.proxies[key])) {
|
||||||
if (!groups.find((group) => group.name === key)) {
|
if (!groups.find((group) => group.name === key)) {
|
||||||
|
if (proxies.proxies[key].hidden) return
|
||||||
groups.push(proxies.proxies[key] as IMihomoGroup)
|
groups.push(proxies.proxies[key] as IMihomoGroup)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user