From 1804d8057e385d6204db839ca2ad8bafa74be608 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Wed, 12 Oct 2022 20:27:06 -0700 Subject: [PATCH] Disable QR code screen if not connected --- Meshtastic/Views/Settings/Settings.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Meshtastic/Views/Settings/Settings.swift b/Meshtastic/Views/Settings/Settings.swift index 8a82e2c7..3ee00649 100644 --- a/Meshtastic/Views/Settings/Settings.swift +++ b/Meshtastic/Views/Settings/Settings.swift @@ -44,6 +44,7 @@ struct Settings: View { .symbolRenderingMode(.hierarchical) Text("Share Channels QR Code") } + .disabled(bleManager.connectedPeripheral == nil) NavigationLink { UserConfig(node: nodes.first(where: { $0.num == connectedNodeNum }))