@@ -66,7 +66,6 @@ struct HomeView: View {
6666 @AppStorage ( " pinnedSystemAppNames " ) private var pinnedSystemAppNames : [ String : String ] = [ : ]
6767 @State private var launchingSystemApps : Set < String > = [ ]
6868 @State private var systemLaunchMessage : String ? = nil
69- @State private var isRemountingDDI = false
7069 @State private var connectionCheckState : ConnectionCheckState = . idle
7170 @State private var connectionInfoMessage : String ? = nil
7271 @State private var hasAutoStartedConnectionCheck = false
@@ -182,9 +181,6 @@ struct HomeView: View {
182181 checkPairingFileExists ( )
183182 heartbeatOK = pubHeartBeat
184183 }
185- . onReceive ( mounting. $mountingThread. receive ( on: RunLoop . main) ) { thread in
186- isRemountingDDI = thread != nil
187- }
188184 . onChange ( of: pairingFileExists) { _, newValue in
189185 if newValue {
190186 loadAppListIfNeeded ( force: cachedAppNames. isEmpty)
@@ -748,21 +744,6 @@ struct HomeView: View {
748744 . font ( . footnote)
749745 . foregroundStyle ( . secondary)
750746
751- Button ( action: remountDeveloperDiskImage) {
752- compactControlButton (
753- icon: " externaldrive.badge.plus " ,
754- title: isRemountingDDI ? " Remounting… " : " Remount DDI " ,
755- showSpinner: isRemountingDDI
756- )
757- }
758- . buttonStyle ( . plain)
759- . disabled ( !pairingFileExists || isRemountingDDI)
760-
761- if isRemountingDDI {
762- ProgressView ( value: min ( max ( mounting. mountProgress / 100 , 0 ) , 1 ) )
763- . progressViewStyle ( . linear)
764- . tint ( accentColor)
765- }
766747 }
767748 }
768749
@@ -809,27 +790,6 @@ struct HomeView: View {
809790 return . orange
810791 }
811792
812- private func remountDeveloperDiskImage( ) {
813- guard pairingFileExists else {
814- showAlert (
815- title: " Pairing File Required " ,
816- message: " Import a valid pairing file before mounting the Developer Disk Image. " ,
817- showOk: true
818- )
819- return
820- }
821- guard !isRemountingDDI else { return }
822- isRemountingDDI = true
823- DispatchQueue . global ( qos: . userInitiated) . async {
824- MountingProgress . shared. pubMount ( )
825- DispatchQueue . main. async {
826- if MountingProgress . shared. mountingThread == nil {
827- isRemountingDDI = false
828- }
829- }
830- }
831- }
832-
833793 private func runConnectionDiagnostics( autoStart: Bool = false ) {
834794 guard !isConnectionCheckRunning else { return }
835795 connectionTimeoutTask? . cancel ( )
0 commit comments