chore: force set SelectAble when start load cache

This commit is contained in:
wwqgtxx
2023-04-24 08:07:17 +08:00
parent 7f1b7e7521
commit 72a67ac534
5 changed files with 14 additions and 1 deletions

View File

@ -138,6 +138,10 @@ func (f *Fallback) Set(name string) error {
return nil
}
func (f *Fallback) ForceSet(name string) {
f.selected = name
}
func NewFallback(option *GroupCommonOption, providers []provider.ProxyProvider) *Fallback {
return &Fallback{
GroupBase: NewGroupBase(GroupBaseOption{