Commit 4550981f authored by dogmaphobic's avatar dogmaphobic

Better handle disabling AP channel number for WiFi parameters.

parent a8fda9bc
......@@ -168,7 +168,7 @@ QGCView {
QGCComboBox {
id: channelField
width: _editFieldWidth
enabled: wifiMode && wifiMode.value === 0
enabled: wifiMode ? wifiMode.value === 0 : true
model: controller.wifiChannels
currentIndex: wifiChannel ? wifiChannel.value - 1 : 0
onActivated: {
......
......@@ -38,8 +38,9 @@ FactPanel {
valueText: wifiMode ? (wifiMode.value === 0 ? "AP Mode" : "Station Mode") : "AP Mode"
}
VehicleSummaryRow {
labelText: qsTr("WiFi Channel:")
valueText: wifiChannel ? wifiChannel.valueString : ""
labelText: qsTr("WiFi Channel:")
valueText: wifiChannel ? wifiChannel.valueString : ""
visible: wifiMode ? wifiMode.value === 0 : true
}
VehicleSummaryRow {
labelText: qsTr("WiFi AP SSID:")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment