Async update content cache size

This commit is contained in:
Christoph Hagen
2022-06-24 12:05:38 +02:00
parent 24d09d3883
commit 228261b5e1
2 changed files with 12 additions and 2 deletions

View File

@ -713,7 +713,7 @@ final class Database: ObservableObject {
return caps.values.filter { $0.classifiable(by: version) }.count
}
var imageCacheSize: Int {
func imageCacheSize() async -> Int {
fm.directorySize(images.folder)
}