Skip to content

Commit

Permalink
Set launchAtStartUp only on value change. (#409)
Browse files Browse the repository at this point in the history
Co-authored-by: Tisfeng <[email protected]>
  • Loading branch information
NeverAgain11 and tisfeng authored Feb 15, 2024
1 parent a37871b commit f175d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Easydict/Feature/Configuration/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ let kHideMenuBarIconKey = "EZConfiguration_kHideMenuBarIconKey"
)

cancellables.append(
Defaults.publisher(.launchAtStartup)
Defaults.publisher(.launchAtStartup, options: [])
.removeDuplicates()
.sink { [weak self] change in
self?.didSetLaunchAtStartup(change.oldValue, new: change.newValue)
Expand Down

0 comments on commit f175d20

Please sign in to comment.