diff --git a/src/FlightDisplay/FlightDisplayView.qml b/src/FlightDisplay/FlightDisplayView.qml index 7564b0d7de11718029942953fe79ddab6b4a03e6..2d581d1c6bab15fddb44d5ce253c1cd4e1e39683 100644 --- a/src/FlightDisplay/FlightDisplayView.qml +++ b/src/FlightDisplay/FlightDisplayView.qml @@ -593,12 +593,12 @@ Item { ] model: [ - { + /*{ name: "Plan", iconSource: "/qmlimages/Plan.svg", buttonVisible: true, buttonEnabled: true, - }, + },*/ { name: "Checklist", iconSource: "/qmlimages/check.svg", @@ -644,9 +644,10 @@ Item { onClicked: { guidedActionsController.closeAll() - if(index === 0) { + /*if(index === 0) { mainWindow.showPlanView() - } else if(index === 1) { + } else*/ + if(index === 0) { checklistDropPanel.open() } else { var action = model[index].action diff --git a/src/PlanView/PlanView.qml b/src/PlanView/PlanView.qml index 69292edef84b370986c135bed3f30bb103441caf..d6ffba86ab4a4440211163f7270b9e86008ff00e 100644 --- a/src/PlanView/PlanView.qml +++ b/src/PlanView/PlanView.qml @@ -542,25 +542,25 @@ Item { z: QGroundControl.zOrderWidgets maxHeight: parent.height - toolStrip.y - readonly property int flyButtonIndex: 0 - readonly property int fileButtonIndex: 1 - readonly property int takeoffButtonIndex: 2 - readonly property int waypointButtonIndex: 3 - readonly property int roiButtonIndex: 4 - readonly property int patternButtonIndex: 5 - readonly property int landButtonIndex: 6 - readonly property int centerButtonIndex: 7 + //readonly property int flyButtonIndex: 0 + readonly property int fileButtonIndex: 0 + readonly property int takeoffButtonIndex: 1 + readonly property int waypointButtonIndex: 2 + readonly property int roiButtonIndex: 3 + readonly property int patternButtonIndex: 4 + readonly property int landButtonIndex: 5 + readonly property int centerButtonIndex: 6 property bool _isRallyLayer: _editingLayer == _layerRallyPoints property bool _isMissionLayer: _editingLayer == _layerMission model: [ - { + /*{ name: qsTr("Fly"), iconSource: "/qmlimages/PaperPlane.svg", buttonEnabled: true, buttonVisible: true, - }, + },*/ { name: qsTr("File"), iconSource: "/qmlimages/MapSync.svg", @@ -620,9 +620,9 @@ Item { onClicked: { switch (index) { - case flyButtonIndex: + /*case flyButtonIndex: mainWindow.showFlyView() - break + break*/ case takeoffButtonIndex: allAddClickBoolsOff() _missionController.insertTakeoffItem(mapCenter(), _missionController.currentMissionIndex, true /* makeCurrentItem */)