Browse Source

Merge pull request #4100 from DonLakeFlyer/SerialComm

Small tweak to serial ui
QGC4.4
Don Gagne 9 years ago committed by GitHub
parent
commit
5b54e2a5e8
  1. 8
      src/ui/preferences/SerialSettings.qml

8
src/ui/preferences/SerialSettings.qml

@ -50,11 +50,17 @@ Item {
width: _firstColumn width: _firstColumn
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
QGCLabel {
text: qsTr("No serial ports available");
visible: QGroundControl.linkManager.serialPortStrings.length == 0
}
QGCComboBox { QGCComboBox {
id: commPortCombo id: commPortCombo
anchors.verticalCenter: parent.verticalCenter
width: _secondColumn width: _secondColumn
model: QGroundControl.linkManager.serialPortStrings model: QGroundControl.linkManager.serialPortStrings
anchors.verticalCenter: parent.verticalCenter visible: QGroundControl.linkManager.serialPortStrings.length > 0
onActivated: { onActivated: {
if (index != -1) { if (index != -1) {
subEditConfig.portName = QGroundControl.linkManager.serialPorts[index] subEditConfig.portName = QGroundControl.linkManager.serialPorts[index]

Loading…
Cancel
Save