Merge pull request #653 from meshtastic/2.3.9_Working_Changes

Dont show the mqtt icon if you doint have either uplink or downlink e…
This commit is contained in:
Garth Vander Houwen 2024-05-28 14:22:47 -07:00 committed by GitHub
commit 4b3407ce72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,9 @@ struct ConnectedDevice: View {
if (phoneOnly && UIDevice.current.userInterfaceIdiom == .phone) || !phoneOnly {
if bluetoothOn {
if deviceConnected {
MQTTIcon(connected: mqttProxyConnected, uplink: mqttUplinkEnabled, downlink: mqttDownlinkEnabled, topic: mqttTopic)
if (mqttUplinkEnabled || mqttDownlinkEnabled) {
MQTTIcon(connected: mqttProxyConnected, uplink: mqttUplinkEnabled, downlink: mqttDownlinkEnabled, topic: mqttTopic)
}
Image(systemName: "antenna.radiowaves.left.and.right.circle.fill")
.imageScale(.large)
.foregroundColor(.green)