From 179ac964ab4e60d3ed91aa9f31bb93ddd2dafa3e Mon Sep 17 00:00:00 2001 From: Stossy11 <69031796+stossy11@users.noreply.github.com> Date: Sat, 29 Mar 2025 15:11:48 +1100 Subject: [PATCH] Fix mount popup --- StikJIT/Views/HomeView.swift | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/StikJIT/Views/HomeView.swift b/StikJIT/Views/HomeView.swift index efeb51e..b4ca106 100644 --- a/StikJIT/Views/HomeView.swift +++ b/StikJIT/Views/HomeView.swift @@ -53,16 +53,17 @@ struct HomeView: View { // Main action button - changes based on whether we have a pairing file Button(action: { - if !isMounted() { - showAlert(title: "Device Not Mounted", message: "The Developer Disk Image has not been mounted yet. Check in settings for more information.", showOk: true) { cool in - // No Need - } - } - if pairingFileExists { // Got a pairing file, show apps isShowingInstalledApps = true + + if !isMounted() { + showAlert(title: "Device Not Mounted", message: "The Developer Disk Image has not been mounted yet. Check in settings for more information.", showOk: true) { cool in + // No Need + } + } + } else { // No pairing file yet, let's get one isShowingPairingFilePicker = true