From cb7eaa059dbc4be7318a6071efc14b4891c628e6 Mon Sep 17 00:00:00 2001 From: Lukas <134181853+bo2themax@users.noreply.github.com> Date: Thu, 23 Jul 2026 22:53:26 +0200 Subject: [PATCH] macOS: silent weak ownership difference warnings UpdateViewModel doesn't own the Task, we don't actually need it here. --- macos/Sources/Features/Update/UpdatePill.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/macos/Sources/Features/Update/UpdatePill.swift b/macos/Sources/Features/Update/UpdatePill.swift index e0301457d..21af76595 100644 --- a/macos/Sources/Features/Update/UpdatePill.swift +++ b/macos/Sources/Features/Update/UpdatePill.swift @@ -24,10 +24,10 @@ struct UpdatePill: View { .onChange(of: model.state) { newState in resetTask?.cancel() if case .notFound(let notFound) = newState { - resetTask = Task { [weak model] in + resetTask = Task { try? await Task.sleep(for: .seconds(5)) - guard !Task.isCancelled, case .notFound? = model?.state else { return } - model?.state = .idle + guard !Task.isCancelled, case .notFound = model.state else { return } + model.state = .idle notFound.acknowledgement() } } else {