Commit 2e6dc3dd authored by DonLakeFlyer's avatar DonLakeFlyer

Not parameter reset for ArduPilot

parent e9293adb
...@@ -32,6 +32,7 @@ QGCView { ...@@ -32,6 +32,7 @@ QGCView {
property bool _searchFilter: searchText.text.trim() != "" ///< true: showing results of search property bool _searchFilter: searchText.text.trim() != "" ///< true: showing results of search
property var _searchResults ///< List of parameter names from search results property var _searchResults ///< List of parameter names from search results
property bool _showRCToParam: !ScreenTools.isMobile && QGroundControl.multiVehicleManager.activeVehicle.px4Firmware property bool _showRCToParam: !ScreenTools.isMobile && QGroundControl.multiVehicleManager.activeVehicle.px4Firmware
property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
ParameterEditorController { ParameterEditorController {
id: controller; id: controller;
...@@ -104,6 +105,7 @@ QGCView { ...@@ -104,6 +105,7 @@ QGCView {
} }
MenuItem { MenuItem {
text: qsTr("Reset all to defaults") text: qsTr("Reset all to defaults")
visible: !_activeVehicle.apmFirmware
onTriggered: showDialog(resetToDefaultConfirmComponent, qsTr("Reset All"), qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Reset) onTriggered: showDialog(resetToDefaultConfirmComponent, qsTr("Reset All"), qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Reset)
} }
MenuSeparator { } MenuSeparator { }
...@@ -334,7 +336,7 @@ QGCView { ...@@ -334,7 +336,7 @@ QGCView {
QGCViewDialog { QGCViewDialog {
function accept() { function accept() {
QGroundControl.multiVehicleManager.activeVehicle.rebootVehicle() _activeVehicle.rebootVehicle()
hideDialog() hideDialog()
} }
......
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