diff --git a/MeshtasticApple/Views/Settings/DeviceConfig.swift b/MeshtasticApple/Views/Settings/DeviceConfig.swift index 795f34ab..2e76f1ba 100644 --- a/MeshtasticApple/Views/Settings/DeviceConfig.swift +++ b/MeshtasticApple/Views/Settings/DeviceConfig.swift @@ -95,6 +95,7 @@ struct DeviceConfig: View { .toggleStyle(SwitchToggleStyle(tint: .accentColor)) } } + .disabled(bleManager.connectedPeripheral == nil) HStack { diff --git a/MeshtasticApple/Views/Settings/DisplayConfig.swift b/MeshtasticApple/Views/Settings/DisplayConfig.swift index 6c33fcb8..e7467bbf 100644 --- a/MeshtasticApple/Views/Settings/DisplayConfig.swift +++ b/MeshtasticApple/Views/Settings/DisplayConfig.swift @@ -180,6 +180,7 @@ struct DisplayConfig: View { .listRowSeparator(.visible) } } + .disabled(bleManager.connectedPeripheral == nil) Button { diff --git a/MeshtasticApple/Views/Settings/LoRaConfig.swift b/MeshtasticApple/Views/Settings/LoRaConfig.swift index de7f76e3..dcb78a37 100644 --- a/MeshtasticApple/Views/Settings/LoRaConfig.swift +++ b/MeshtasticApple/Views/Settings/LoRaConfig.swift @@ -236,6 +236,7 @@ struct LoRaConfig: View { .listRowSeparator(.visible) } } + .disabled(bleManager.connectedPeripheral == nil) Button { diff --git a/MeshtasticApple/Views/Settings/PositionConfig.swift b/MeshtasticApple/Views/Settings/PositionConfig.swift index c16d99c9..94ee8d03 100644 --- a/MeshtasticApple/Views/Settings/PositionConfig.swift +++ b/MeshtasticApple/Views/Settings/PositionConfig.swift @@ -184,7 +184,6 @@ struct PositionConfig: View { } } - .disabled(!(node.myInfo?.hasGps ?? true)) Section(header: Text("Position Packet")) { @@ -226,7 +225,6 @@ struct PositionConfig: View { Label("Number of satellites", systemImage: "skew") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) - .disabled(!(node.myInfo?.hasGps ?? true)) .listRowSeparator(.visible) Toggle(isOn: $includePosSeqNos) { //64 @@ -258,6 +256,7 @@ struct PositionConfig: View { .listRowSeparator(.visible) } } + .disabled(bleManager.connectedPeripheral == nil) Button { diff --git a/MeshtasticApple/Views/Settings/Settings.swift b/MeshtasticApple/Views/Settings/Settings.swift index ba137128..4c632a53 100644 --- a/MeshtasticApple/Views/Settings/Settings.swift +++ b/MeshtasticApple/Views/Settings/Settings.swift @@ -47,6 +47,10 @@ struct Settings: View { Section("Radio Configuration") { + Text("Radio config values will be be enabled when there is a connected node. Save buttons will enable when there is a connected node and config changes to save.") + .font(.caption) + .listRowSeparator(.visible) + NavigationLink { DeviceConfig(node: nodes.first(where: { $0.num == connectedNodeNum }) ?? NodeInfoEntity()) } label: {