summaryrefslogtreecommitdiff
path: root/macos/Sources/Features/Update/UpdateSimulator.swift
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-10-10 09:30:12 -0700
committerGitHub <noreply@github.com>2025-10-10 09:30:12 -0700
commit207eccffda019f11e87d2af7c0a98c9223b228b7 (patch)
tree105f786e35ee69e6ab2ce2497c988bcf32002f14 /macos/Sources/Features/Update/UpdateSimulator.swift
parent2bf9c777d769e08596c62c7064fd8af086d70229 (diff)
macos: Sparkle notFound acknowledgement should only be called on dismiss (#9126)
This was causing the "no update found" message to never really appear in the real world.
Diffstat (limited to 'macos/Sources/Features/Update/UpdateSimulator.swift')
-rw-r--r--macos/Sources/Features/Update/UpdateSimulator.swift4
1 files changed, 3 insertions, 1 deletions
diff --git a/macos/Sources/Features/Update/UpdateSimulator.swift b/macos/Sources/Features/Update/UpdateSimulator.swift
index 96fab4835..f40bbee1b 100644
--- a/macos/Sources/Features/Update/UpdateSimulator.swift
+++ b/macos/Sources/Features/Update/UpdateSimulator.swift
@@ -72,7 +72,9 @@ enum UpdateSimulator {
}))
DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {
- viewModel.state = .notFound
+ viewModel.state = .notFound(.init(acknowledgement: {
+ // Acknowledgement called when dismissed
+ }))
DispatchQueue.main.asyncAfter(deadline: .now() + 3.0) {
viewModel.state = .idle