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 committed Oct 25, 2024
1 parent 61d37c0 commit 33b6436
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 33b6436

Please sign in to comment.