From e3de3d4ab3ee844dad8a7d1738d931971766dc69 Mon Sep 17 00:00:00 2001 From: Stossy11 <69031796+stossy11@users.noreply.github.com> Date: Sat, 29 Mar 2025 15:00:11 +1100 Subject: [PATCH] Fix Settings (hopefully) --- StikJIT/StikJITApp.swift | 1 - StikJIT/Views/SettingsView.swift | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/StikJIT/StikJITApp.swift b/StikJIT/StikJITApp.swift index 7a78159..40e8f5a 100644 --- a/StikJIT/StikJITApp.swift +++ b/StikJIT/StikJITApp.swift @@ -203,7 +203,6 @@ class MountingProgress: ObservableObject { func startHeartbeatInBackground() { let heartBeat = Thread { let completionHandler: @convention(block) (Int32, String?) -> Void = { result, message in - if result == 0 { print("Heartbeat started successfully: \(message ?? "")") diff --git a/StikJIT/Views/SettingsView.swift b/StikJIT/Views/SettingsView.swift index 26fbd99..484ff5a 100644 --- a/StikJIT/Views/SettingsView.swift +++ b/StikJIT/Views/SettingsView.swift @@ -21,6 +21,8 @@ struct SettingsView: View { @StateObject private var mountProg = MountingProgress.shared + @State private var mounted = false + // Developer profile image URLs private let developerProfiles: [String: String] = [ "Blu": "https://github.com/0-Blu.png", @@ -178,7 +180,7 @@ struct SettingsView: View { .foregroundColor(.primary) .padding(.bottom, 4) - if mountProg.coolisMounted { + if self.mounted { HStack { Spacer() Text("✓ Developer Disk Image Mounted Sucessfully!") @@ -221,7 +223,7 @@ struct SettingsView: View { .padding(.vertical, 20) .padding(.horizontal, 16) .onAppear() { - mountProg.checkforMounted() + self.mounted = isMounted() } }