Fix property in launch on login bindings
This commit is contained in:
parent
b183dece8c
commit
0464cd0476
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue