Move some updater stuff to being an actor

This commit is contained in:
Max Goedjen
2022-01-18 16:38:59 -05:00
parent cb206a18c2
commit e86b9d2465
7 changed files with 58 additions and 32 deletions

View File

@@ -18,7 +18,9 @@ struct UpdateDetailView<UpdaterType: Updater>: View {
HStack {
if !update.critical {
Button("Ignore") {
updater.ignore(release: update)
Task { [updater, update] in
await updater.ignore(release: update)
}
}
Spacer()
}