Keep installed models, chat selection, and web enablement in sync

This commit is contained in:
Mark Gregory
2026-11-17 09:40:46 +00:00
parent 1d5edbc292
commit 4ad93b383b
5 changed files with 52 additions and 22 deletions
+7
View File
@@ -191,6 +191,13 @@ struct ChatView: View {
}
}
}
.onChange(of: studio.modelSelectionRevision) {
let defaults = UserDefaults.standard
mlxPath = defaults.string(forKey: "mlxPath") ?? ""
model = defaults.string(forKey: "ollamaModel") ?? ""
mlxOnly = defaults.bool(forKey: "mlxOnly")
compatibleEnabled = defaults.bool(forKey: "compatibleEnabled")
}
.onChange(of: studio.selected) { old, _ in
useDocuments = false
if old != nil {