new tests

This commit is contained in:
Mark Gregory
2026-10-19 10:53:12 +01:00
parent 8d33346993
commit 82a54e7905
4 changed files with 163 additions and 40 deletions
+2 -1
View File
@@ -98,7 +98,8 @@ struct DBSynSchemaDiagramView: View {
if let stored = UserDefaults.standard.stringArray(forKey: selectionKey) {
includedObjects = Set(stored)
} else { includedObjects = Set(allObjects) }
theme = UserDefaults.standard.string(forKey: themeKey) ?? "Ocean"
theme = UserDefaults.standard.string(forKey: themeKey) ?? UserDefaults.standard.string(forKey: "preferences.diagramPalette") ?? "Ocean"
showAllColumns = UserDefaults.standard.bool(forKey: "preferences.diagramShowAllColumns")
}
private func saveOptions() {
UserDefaults.standard.set(Array(includedObjects).sorted(), forKey: selectionKey)