chore: Adapt the hidden field for proxy groups (#685)

the GUI should not display proxy groups tags where `hidden: true`.
This commit is contained in:
iKira
2026-03-20 15:07:00 +08:00
committed by GitHub
parent d8e336edf2
commit acdcd603c5

View File

@@ -68,8 +68,11 @@ func QueryProxyGroupNames(excludeNotSelectable bool) []string {
}
for _, p := range proxies {
if _, ok := p.Adapter().(outboundgroup.ProxyGroup); ok {
if g, ok := p.Adapter().(outboundgroup.ProxyGroup); ok {
if !excludeNotSelectable || p.Type() == C.Selector {
if g.Hidden() {
continue
}
result = append(result, p.Name())
}
}