From dbf1597157699f5693a6f795cc3b618311a032da Mon Sep 17 00:00:00 2001 From: Nindi Gill Date: Thu, 8 Jun 2023 17:45:30 +1000 Subject: [PATCH] Track download type on app launch --- Mist/Views/ContentView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mist/Views/ContentView.swift b/Mist/Views/ContentView.swift index 81ba246..dca8f64 100644 --- a/Mist/Views/ContentView.swift +++ b/Mist/Views/ContentView.swift @@ -8,13 +8,14 @@ import SwiftUI struct ContentView: View { + @AppStorage("downloadType") + private var downloadType: DownloadType = .firmware @AppStorage("includeBetas") private var includeBetas: Bool = false @AppStorage("showCompatible") private var showCompatible: Bool = false @Binding var refreshing: Bool @Binding var downloadInProgress: Bool - @State private var downloadType: DownloadType = .firmware @State private var firmwares: [Firmware] = [] @State private var installers: [Installer] = [] @State private var searchString: String = ""