mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-15 20:10:30 +00:00
Removed the broken button
This commit is contained in:
parent
525e5f57b0
commit
ab5a0e66af
1 changed files with 0 additions and 40 deletions
|
|
@ -66,7 +66,6 @@ struct HomeView: View {
|
|||
@AppStorage("pinnedSystemAppNames") private var pinnedSystemAppNames: [String: String] = [:]
|
||||
@State private var launchingSystemApps: Set<String> = []
|
||||
@State private var systemLaunchMessage: String? = nil
|
||||
@State private var isRemountingDDI = false
|
||||
@State private var connectionCheckState: ConnectionCheckState = .idle
|
||||
@State private var connectionInfoMessage: String? = nil
|
||||
@State private var hasAutoStartedConnectionCheck = false
|
||||
|
|
@ -182,9 +181,6 @@ struct HomeView: View {
|
|||
checkPairingFileExists()
|
||||
heartbeatOK = pubHeartBeat
|
||||
}
|
||||
.onReceive(mounting.$mountingThread.receive(on: RunLoop.main)) { thread in
|
||||
isRemountingDDI = thread != nil
|
||||
}
|
||||
.onChange(of: pairingFileExists) { _, newValue in
|
||||
if newValue {
|
||||
loadAppListIfNeeded(force: cachedAppNames.isEmpty)
|
||||
|
|
@ -748,21 +744,6 @@ struct HomeView: View {
|
|||
.font(.footnote)
|
||||
.foregroundStyle(.secondary)
|
||||
|
||||
Button(action: remountDeveloperDiskImage) {
|
||||
compactControlButton(
|
||||
icon: "externaldrive.badge.plus",
|
||||
title: isRemountingDDI ? "Remounting…" : "Remount DDI",
|
||||
showSpinner: isRemountingDDI
|
||||
)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.disabled(!pairingFileExists || isRemountingDDI)
|
||||
|
||||
if isRemountingDDI {
|
||||
ProgressView(value: min(max(mounting.mountProgress / 100, 0), 1))
|
||||
.progressViewStyle(.linear)
|
||||
.tint(accentColor)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -809,27 +790,6 @@ struct HomeView: View {
|
|||
return .orange
|
||||
}
|
||||
|
||||
private func remountDeveloperDiskImage() {
|
||||
guard pairingFileExists else {
|
||||
showAlert(
|
||||
title: "Pairing File Required",
|
||||
message: "Import a valid pairing file before mounting the Developer Disk Image.",
|
||||
showOk: true
|
||||
)
|
||||
return
|
||||
}
|
||||
guard !isRemountingDDI else { return }
|
||||
isRemountingDDI = true
|
||||
DispatchQueue.global(qos: .userInitiated).async {
|
||||
MountingProgress.shared.pubMount()
|
||||
DispatchQueue.main.async {
|
||||
if MountingProgress.shared.mountingThread == nil {
|
||||
isRemountingDDI = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func runConnectionDiagnostics(autoStart: Bool = false) {
|
||||
guard !isConnectionCheckRunning else { return }
|
||||
connectionTimeoutTask?.cancel()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue