Commit 76850a9e authored by DonLakeFlyer's avatar DonLakeFlyer

parent 72fd8342
......@@ -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
......
......@@ -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 */)
......
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