From 921acad1b8daf0e75c16817ddef6e755c89bea90 Mon Sep 17 00:00:00 2001 From: BomberFish <87151697+BomberFish@users.noreply.github.com> Date: Wed, 12 Jul 2023 09:57:13 -0400 Subject: [PATCH] small changes --- AppCommander/AppCommanderApp.swift | 2 +- AppCommander/Views/Navigation/MainView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AppCommander/AppCommanderApp.swift b/AppCommander/AppCommanderApp.swift index f899dc1..4514110 100644 --- a/AppCommander/AppCommanderApp.swift +++ b/AppCommander/AppCommanderApp.swift @@ -29,6 +29,7 @@ struct AppCommanderApp: App { init() { /// This initializes analytics from TelemetryDeck. By default the API keys are not included in the public source release. You can supply your own by setting the `telemetryDeckID` variable. It is recommended to store it in a file named `APIKeys.swift` in the top-level directory of the repository, as the path is included in the gitignore. if telemetryDeckID != nil { + print("AppCommander v\(appVersion)", loglevel: .info) if analyticsEnabled { //initialize analytics print("Initializing Analytics...", loglevel: .info, logger: analyticsLogger) @@ -139,7 +140,6 @@ struct AppCommanderApp: App { } } .task(priority: .high) { - print("AppCommander v\(appVersion)", loglevel: .info, logger: logger) DispatchQueue.global(qos: .background).sync { Whitelist.top_secret_sauce { baked_goods in diff --git a/AppCommander/Views/Navigation/MainView.swift b/AppCommander/Views/Navigation/MainView.swift index c59e9c7..d355bf8 100644 --- a/AppCommander/Views/Navigation/MainView.swift +++ b/AppCommander/Views/Navigation/MainView.swift @@ -10,7 +10,7 @@ import SwiftUI struct MainView: View { @State private var searchText = "" @State var debugEnabled: Bool = UserDefaults.standard.bool(forKey: "DebugEnabled") - @State var gridEnabled: Bool = false + @AppStorage("gridEnabled") var gridEnabled: Bool = false @State var compactEnabled: Bool = UserDefaults.standard.bool(forKey: "compactEnabled") // MARK: - Literally the worst code ever. Will I fix it? No!