Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc904646

Browse files
committed
fixup
1 parent134c7bc commitc904646

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎Coder-Desktop/Coder-Desktop/UpdaterService.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ final class UpdaterService: NSObject, ObservableObject {
1010
privatevarupdater:SPUUpdater!
1111
@PublishedvarcanCheckForUpdates=true
1212

13-
@PublishedvarautoCheckForUpdates:Bool=false{
13+
@PublishedvarautoCheckForUpdates:Bool!{
1414
didSet{
15-
if autoCheckForUpdates!= oldValue{
15+
iflet autoCheckForUpdates,autoCheckForUpdates!= oldValue{
1616
updater.automaticallyChecksForUpdates= autoCheckForUpdates
1717
}
1818
}
@@ -31,6 +31,7 @@ final class UpdaterService: NSObject, ObservableObject {
3131
.flatMap{UpdateChannel(rawValue: $0)}??.stable
3232
super.init()
3333
updater= inner.updater
34+
autoCheckForUpdates= updater.automaticallyChecksForUpdates
3435
updater.publisher(for: \.canCheckForUpdates).assign(to:&$canCheckForUpdates)
3536
}
3637

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp