diff --git a/Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift b/Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift index dc7cc88b8..a975f36b8 100644 --- a/Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift +++ b/Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift @@ -170,11 +170,13 @@ private struct ServiceItemView: View { get { inner.enabled } set { - inner.enabled = newValue - if newValue { - inner.enabledQuery = newValue + if inner.enabled != newValue { + inner.enabled = newValue + if newValue { + inner.enabledQuery = newValue + } + save() } - save() } }