Skip to content

Commit 1f488f3

Browse files
Add @mainactor attribute to cacheFooter for improved concurrency handling
1 parent 3b52ee8 commit 1f488f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/MLXLoRAStudio/Views/TrainingView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ private struct ModelDataSection: View {
235235

236236
/// Footer line that summarises what the dropdown is showing, so the
237237
/// user knows whether the cache has been scanned yet.
238-
private var cacheFooter: String? {
238+
@MainActor private var cacheFooter: String? {
239239
if store.isScanningHFCache { return "Scanning local HF cache…" }
240240
let n = store.cachedModels.count
241241
let d = store.cachedDatasets.count

0 commit comments

Comments
 (0)