V 1.25.9 Add Settings and move nav around. Configure project for MacOS TestFlight

This commit is contained in:
Garth Vander Houwen 2021-10-17 01:05:44 -07:00
parent c2cb860ab2
commit 49e19a4a76
7 changed files with 125 additions and 31 deletions

View file

@ -29,6 +29,15 @@ class MeshData: ObservableObject {
return
}
guard let nodeList = try? JSONDecoder().decode([NodeInfoModel].self, from: data) else {
do {
// If the file is borked delete it so we stop crashing
try FileManager.default.removeItem(at: Self.fileURL)
}
catch {
fatalError("Can't delete saved node data.")
}
fatalError("Can't decode saved node data.")
}
DispatchQueue.main.async {