Browse Source

Better handling of Flight Plan Complete comm lost scenarios

QGC4.4
Don Gagne 7 years ago
parent
commit
0b938f334e
  1. 24
      src/FlightDisplay/FlightDisplayView.qml

24
src/FlightDisplay/FlightDisplayView.qml

@ -163,6 +163,12 @@ QGCView { @@ -163,6 +163,12 @@ QGCView {
id: missionCompleteDialogComponent
QGCViewDialog {
property var activeVehicleCopy: _activeVehicle
onActiveVehicleCopyChanged:
if (!activeVehicleCopy) {
hideDialog()
}
QGCFlickable {
anchors.fill: parent
contentHeight: column.height
@ -172,7 +178,11 @@ QGCView { @@ -172,7 +178,11 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.right: parent.right
ColumnLayout {
Layout.fillWidth: true
spacing: ScreenTools.defaultFontPixelHeight
visible: !_activeVehicle.connectionLost || !_guidedController.showResumeMission
QGCLabel {
Layout.fillWidth: true
@ -230,6 +240,20 @@ QGCView { @@ -230,6 +240,20 @@ QGCView {
visible: _guidedController.showResumeMission
}
}
ColumnLayout {
Layout.fillWidth: true
spacing: ScreenTools.defaultFontPixelHeight
visible: _activeVehicle.connectionLost && _guidedController.showResumeMission
QGCLabel {
Layout.fillWidth: true
wrapMode: Text.WordWrap
color: qgcPal.warningText
text: qsTr("If you are changing batteries for Resume Mission do not disconnect from the vehicle.")
}
}
}
}
}
}

Loading…
Cancel
Save