Skip to content

Commit

Permalink
Fix console warnings shown when adding complex land mission item
Browse files Browse the repository at this point in the history
1. Remove references to non existent useLoiterToAlt.visible property
2. Don't add _mouseArea to the map (the action was failing and isn't necessary)
  • Loading branch information
gillamkid authored and dagar committed Nov 6, 2024
1 parent c584bdf commit 1e4d79d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/PlanView/FWLandingPatternEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ Rectangle {
FactCheckBox {
text: qsTr("Use loiter to altitude")
fact: missionItem.useLoiterToAlt
visible: missionItem.useLoiterToAlt.visible
}

GridLayout {
Expand Down
1 change: 0 additions & 1 deletion src/PlanView/FWLandingPatternMapVisual.qml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ Item {
function showMouseArea() {
if (!_mouseArea) {
_mouseArea = mouseAreaComponent.createObject(map)
map.addMapItem(_mouseArea)
}
}

Expand Down
1 change: 0 additions & 1 deletion src/PlanView/VTOLLandingPatternEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ Rectangle {
FactCheckBox {
text: qsTr("Use loiter to altitude")
fact: missionItem.useLoiterToAlt
visible: missionItem.useLoiterToAlt.visible
}

GridLayout {
Expand Down
1 change: 0 additions & 1 deletion src/PlanView/VTOLLandingPatternMapVisual.qml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ Item {
function showMouseArea() {
if (!_mouseArea) {
_mouseArea = mouseAreaComponent.createObject(map)
map.addMapItem(_mouseArea)
}
}

Expand Down

0 comments on commit 1e4d79d

Please sign in to comment.