Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74af350

Browse files
committed
chore: bring app to front when an update is available
1 parent c19b39a commit 74af350

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Coder-Desktop/Coder-Desktop/UpdaterService.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ extension UpdaterService: SPUUpdaterDelegate {
6363
// preview >= stable
6464
[updateChannel.rawValue]
6565
}
66+
67+
func updater(_ updater: SPUUpdater, didFindValidUpdate item: SUAppcastItem) {
68+
Task { @MainActor in appActivate() }
69+
}
6670
}
6771

6872
extension UpdaterService: SUVersionDisplay {

0 commit comments

Comments
 (0)