fix: show Sparkle dialog on first manual update check
This commit is contained in:
parent
f0dcdf90e9
commit
72f2e3b89d
3 changed files with 162 additions and 13 deletions
|
|
@ -101,10 +101,13 @@ extension UpdateDriver: SPUUpdaterDelegate {
|
|||
}
|
||||
}
|
||||
|
||||
func updater(_ updater: SPUUpdater, userDidMake _: SPUUserUpdateChoice, forUpdate _: SUAppcastItem, state _: SPUUserUpdateState) {
|
||||
func updater(_ updater: SPUUpdater, userDidMake choice: SPUUserUpdateChoice, forUpdate _: SUAppcastItem, state: SPUUserUpdateState) {
|
||||
DispatchQueue.main.async { [weak viewModel] in
|
||||
viewModel?.clearDetectedUpdate()
|
||||
}
|
||||
if state.userInitiated, choice != .install {
|
||||
finishUserInitiatedCheckPresentation()
|
||||
}
|
||||
}
|
||||
|
||||
func updaterWillRelaunchApplication(_ updater: SPUUpdater) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue