Fix property in launch on login bindings

This commit is contained in:
Davide De Rosa 2022-07-18 17:43:49 +02:00
parent b183dece8c
commit 0464cd0476
1 changed files with 2 additions and 2 deletions

View File

@ -63,13 +63,13 @@ extension LaunchOnLoginItem {
}
@objc func toggleLaunchesOnLogin() {
launchesOnLogin.toggle()
persistentlyLaunchesOnLogin.toggle()
}
func subscribe(_ block: @escaping (Bool) -> Void) {
objectWillChange
.sink {
block(self.launchesOnLogin)
block(self.persistentlyLaunchesOnLogin)
}.store(in: &subscriptions)
}
}