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() {
|
@objc func toggleLaunchesOnLogin() {
|
||||||
launchesOnLogin.toggle()
|
persistentlyLaunchesOnLogin.toggle()
|
||||||
}
|
}
|
||||||
|
|
||||||
func subscribe(_ block: @escaping (Bool) -> Void) {
|
func subscribe(_ block: @escaping (Bool) -> Void) {
|
||||||
objectWillChange
|
objectWillChange
|
||||||
.sink {
|
.sink {
|
||||||
block(self.launchesOnLogin)
|
block(self.persistentlyLaunchesOnLogin)
|
||||||
}.store(in: &subscriptions)
|
}.store(in: &subscriptions)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue