Commit d2ddc800 authored by Lorenz Meier's avatar Lorenz Meier

Fix QML corner cases, simplify instructions, add need to manually re-connect

parent 63234180
...@@ -111,7 +111,7 @@ QGCView { ...@@ -111,7 +111,7 @@ QGCView {
QGCLabel { QGCLabel {
anchors.top: headingSpacer.bottom anchors.top: headingSpacer.bottom
width: parent.width - applyButton.width - 5 width: parent.width - applyButton.width - 5
text: "Select your airframe type and specific vehicle bellow. Click 'Apply and Restart' when ready and your vehicle will be disconnected, rebooted to the new settings and re-connected." text: "Please select your airframe type. Click 'Apply and Restart' to reboot the autopilot. Please re-connect then manually."
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
} }
...@@ -221,11 +221,14 @@ QGCView { ...@@ -221,11 +221,14 @@ QGCView {
anchors.top: image.bottom anchors.top: image.bottom
width: parent.width - (innerMargin * 2) width: parent.width - (innerMargin * 2)
model: modelData.airframes model: modelData.airframes
currentIndex: (modelData.name == controller.currentAirframeType) ? controller.currentVehicleIndex : 0 currentIndex: (modelData.name == controller.currentAirframeType) ? controller.currentVehicleIndex : -1
onActivated: { onActivated: {
controller.autostartId = modelData.airframes[currentIndex].autostartId if (index != -1) {
airframeCheckBox.checked = true; currentIndex = index
controller.autostartId = modelData.airframes[index].autostartId
airframeCheckBox.checked = true;
}
} }
} }
} }
......
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