Commit 8b379ecb authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #4472 from dagar/reboot

reboot vehicle from param menu
parents 05c75c1f 3b802c0c
...@@ -118,6 +118,11 @@ QGCView { ...@@ -118,6 +118,11 @@ QGCView {
onTriggered: controller.clearRCToParam() onTriggered: controller.clearRCToParam()
visible: _showRCToParam visible: _showRCToParam
} }
MenuSeparator { }
MenuItem {
text: qsTr("Reboot Vehicle")
onTriggered: showDialog(rebootVehicleConfirmComponent, qsTr("Reboot Vehicle"), qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
}
} }
} }
...@@ -294,4 +299,21 @@ QGCView { ...@@ -294,4 +299,21 @@ QGCView {
} }
} }
} }
Component {
id: rebootVehicleConfirmComponent
QGCViewDialog {
function accept() {
QGroundControl.multiVehicleManager.activeVehicle.rebootVehicle()
hideDialog()
}
QGCLabel {
width: parent.width
wrapMode: Text.WordWrap
text: qsTr("Select Ok to reboot vehicle.")
}
}
}
} // QGCView } // QGCView
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