diff --git a/Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift b/Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift index 2cb904369..f67f3bf49 100644 --- a/Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift +++ b/Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift @@ -75,8 +75,10 @@ struct ServiceTab: View { func loadService(type: Int) { let windowType = EZWindowType(rawValue: type) ?? .none - serviceTypes = EZLocalStorage.shared().allServiceTypes(windowType) services = EZLocalStorage.shared().allServices(windowType) + serviceTypes = services.map { service in + service.serviceType() + } } func serviceToggled(index: Int, isEnable: Bool) {