Skip to content

Commit

Permalink
fix: do not post update notification if service enabled is not changed
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Jan 16, 2024
1 parent 9ec39e7 commit ffd53ec
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit ffd53ec

Please sign in to comment.