macOS: fix update error pill is not showing properly (#13540)

`acknowledgement` will call `dismissUpdateInstallation` so the error
state will never happen.
This commit is contained in:
Mitchell Hashimoto
2026-08-01 14:28:06 -07:00
committed by GitHub

View File

@@ -95,14 +95,12 @@ class UpdateDriver: NSObject, SPUUserDriver {
delegate.checkForUpdates(self)
}
},
dismiss: { [weak viewModel] in
viewModel?.state = .idle
dismiss: {
acknowledgement()
}))
if !hasUnobtrusiveTarget {
standard.showUpdaterError(error, acknowledgement: acknowledgement)
} else {
acknowledgement()
}
}