Cache fixes

This commit is contained in:
Arkadiusz Fal
2022-12-12 10:21:46 +01:00
parent 25da312966
commit a35d697ebe
10 changed files with 119 additions and 118 deletions

View File

@@ -137,7 +137,7 @@ struct AdvancedSettings: View {
title: Text(
"Are you sure you want to clear cache?"
),
primaryButton: .destructive(Text("Clear"), action: CacheModel.shared.clear),
primaryButton: .destructive(Text("Clear"), action: BaseCacheModel.shared.clear),
secondaryButton: .cancel()
)
)
@@ -148,7 +148,7 @@ struct AdvancedSettings: View {
}
var cacheSize: some View {
Text(String(format: "Total size: %@", CacheModel.shared.totalSizeFormatted))
Text(String(format: "Total size: %@", BaseCacheModel.shared.totalSizeFormatted))
.foregroundColor(.secondary)
}
}