From 2ca0b86364de1dd05546937039e6eb8126710fb3 Mon Sep 17 00:00:00 2001 From: Stephen B <158498287+StephenDev0@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:02:16 -0400 Subject: [PATCH] Show warning after Continue Anyway (#239) --- StikJIT/StikJITApp.swift | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/StikJIT/StikJITApp.swift b/StikJIT/StikJITApp.swift index 5df6a98..3cf3519 100644 --- a/StikJIT/StikJITApp.swift +++ b/StikJIT/StikJITApp.swift @@ -454,6 +454,7 @@ struct HeartbeatApp: App { @State private var alert_title = "" @State private var showTimeoutError = false @State private var showLogs = false + @State private var showContinueWarning = false @State private var timeoutTimer: Timer? @StateObject private var mount = MountingProgress.shared @StateObject private var dnsChecker = DNSChecker() // New DNS check state object @@ -615,7 +616,7 @@ struct HeartbeatApp: App { primaryButtonText: "Continue Anyway", secondaryButtonText: "View Logs", onPrimaryButtonTap: { - isLoading2 = false + showContinueWarning = true }, onSecondaryButtonTap: { showLogs = true @@ -623,6 +624,22 @@ struct HeartbeatApp: App { showSecondaryButton: true ) } + + if showContinueWarning { + CustomErrorView( + title: "Proceeding Without Connection", + message: "StikDebug will not function as expected if you choose to continue.", + onDismiss: { + showContinueWarning = false + }, + showButton: true, + primaryButtonText: "I Understand", + onPrimaryButtonTap: { + showContinueWarning = false + isLoading2 = false + } + ) + } } ) .sheet(isPresented: $showLogs, onDismiss: {