misc: provider group

This commit is contained in:
mrFq1
2023-05-16 14:31:29 +08:00
parent 90368feb81
commit adcfb183f9

View File

@@ -41,8 +41,9 @@ struct ProxiesView: View {
func loadProxies() {
// self.isGlobalMode = ConfigManager.shared.currentConfig?.mode == .global
ApiRequest.requestProxyGroupList {
proxyStorage.groups = DBProxyStorage($0).groups.filter {
ApiRequest.getMergedProxyData {
guard let resp = $0 else { return }
proxyStorage.groups = DBProxyStorage(resp).groups.filter {
isGlobalMode ? true : $0.name != "GLOBAL"
}
}