Fix Settings (hopefully)

This commit is contained in:
Stossy11 2025-03-29 15:00:11 +11:00
parent 4fcf0b096e
commit e3de3d4ab3
2 changed files with 4 additions and 3 deletions

View file

@ -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 ?? "")")

View file

@ -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()
}
}