We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent9d118ba commit501d31bCopy full SHA for 501d31b
Coder-Desktop/Coder-Desktop/UpdaterService.swift
@@ -10,9 +10,9 @@ final class UpdaterService: NSObject, ObservableObject {
10
privatevarupdater:SPUUpdater!
11
@PublishedvarcanCheckForUpdates=true
12
13
-@PublishedvarautoCheckForUpdates:Bool=false{
+@PublishedvarautoCheckForUpdates:Bool!{
14
didSet{
15
-if autoCheckForUpdates!= oldValue{
+iflet autoCheckForUpdates,autoCheckForUpdates!= oldValue{
16
updater.automaticallyChecksForUpdates= autoCheckForUpdates
17
}
18
@@ -31,6 +31,7 @@ final class UpdaterService: NSObject, ObservableObject {
31
.flatMap{UpdateChannel(rawValue: $0)}??.stable
32
super.init()
33
updater= inner.updater
34
+ autoCheckForUpdates= updater.automaticallyChecksForUpdates
35
updater.publisher(for: \.canCheckForUpdates).assign(to:&$canCheckForUpdates)
36
37