prepare for carplay app hash

This commit is contained in:
leminlimez committed 2025-06-19 03:14:49 -04:00
1 parent 6d1633b44a
commit 9d8aef4039
1 file changed
+4 -1
+4 -1
View File
@@ -133,7 +133,10 @@ struct SettingsView: View {
let contents = try String(contentsOf: filePath) let contents = try String(contentsOf: filePath)
try? FileManager.default.removeItem(at: filePath) try? FileManager.default.removeItem(at: filePath)
await MainActor.run { await MainActor.run {
pbHash = contents let items = contents.split(separator: "\n")
if let pb = items.first {
pbHash = String(pb)
}
} }
} catch { } catch {
print(error.localizedDescription) print(error.localizedDescription)