save carplay hash to make transition easier
This commit is contained in:
1 parent
80be3c8941
commit
6aa0598da4
1 file changed
+5
-1
@@ -9,7 +9,8 @@ import SwiftUI
|
||||
|
||||
struct SettingsView: View {
|
||||
// Prefs
|
||||
@AppStorage("pbHash") var pbHash: String = ""
|
||||
@AppStorage("pbHash") var pbHash: String = "" // PosterBoard hash
|
||||
@AppStorage("cpHash") var cpHash: String = "" // CarPlay hash
|
||||
|
||||
@State var checkingForHash: Bool = false
|
||||
@State var hashCheckTask: Task<Void, any Error>? = nil
|
||||
@@ -138,6 +139,9 @@ struct SettingsView: View {
|
||||
if let pb = items.first {
|
||||
pbHash = String(pb)
|
||||
}
|
||||
if items.count >= 2 {
|
||||
cpHash = String(items[1])
|
||||
}
|
||||
}
|
||||
} catch {
|
||||
print(error.localizedDescription)
|
||||
|
||||
Reference in new issue
Block a user