From adcfb183f9cb7ce4d2a4f6ec44160d042060c4b1 Mon Sep 17 00:00:00 2001 From: mrFq1 <1xxbx0il0@mozmail.com> Date: Tue, 16 May 2023 14:31:29 +0800 Subject: [PATCH] misc: provider group --- ClashX Dashboard/Views/ContentTabs/Proxies/ProxiesView.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ClashX Dashboard/Views/ContentTabs/Proxies/ProxiesView.swift b/ClashX Dashboard/Views/ContentTabs/Proxies/ProxiesView.swift index 2b3e1fe..0d557d2 100644 --- a/ClashX Dashboard/Views/ContentTabs/Proxies/ProxiesView.swift +++ b/ClashX Dashboard/Views/ContentTabs/Proxies/ProxiesView.swift @@ -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" } }