Fix cap deletion

This commit is contained in:
Christoph Hagen
2023-10-24 20:59:15 +02:00
parent 403ab1dee5
commit 300c1849fb
2 changed files with 8 additions and 2 deletions

View File

@ -800,7 +800,9 @@ final class Database: ObservableObject {
// Delete cached images
images.removeCachedImages(for: cap)
// Delete cap
caps[cap] = nil
DispatchQueue.main.async {
self.caps[cap] = nil
}
log("Deleted cap \(cap)")
return true
} catch {