Skip to content

Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit

Refresh prefixes when returning to the Prefixes view

NotProtonNoteb2dc81cc2ca
diff --git a/app/Sources/NotProtonApp/Views/PrefixesView.swift b/app/Sources/NotProtonApp/Views/PrefixesView.swift
index 97265e9..3746abb 100644
--- a/app/Sources/NotProtonApp/Views/PrefixesView.swift
+++ b/app/Sources/NotProtonApp/Views/PrefixesView.swift
@@ -59,7 +59,7 @@ struct PrefixesView: View {
ToolbarItemGroup(placement: .primaryAction) { strip }
}
}
- .task { if model.prefixes.isEmpty { await model.load() } }
+ .task { await model.load() }
.confirmationDialog(
PrefixPrompt.deleteTitle(deleting),
isPresented: asking(.delete),