mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-16 04:20:30 +00:00
Fix Settings (hopefully)
This commit is contained in:
parent
4fcf0b096e
commit
e3de3d4ab3
2 changed files with 4 additions and 3 deletions
|
|
@ -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 ?? "")")
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue