mirror of
https://github.com/yattee/yattee.git
synced 2025-08-04 01:34:10 +00:00
Cache fixes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user