Commit 6649562c authored by Don Gagne's avatar Don Gagne

Cleaning warning message output

parent 45cb473c
......@@ -95,6 +95,10 @@ Item {
}
function fitMapViewportToMissionItems() {
if (!mapMissionController.visualItems) {
// Being called prior to controller.start
return
}
var coordList = [ ]
addMissionItemCoordsForFit(coordList)
fitMapViewportToAllCoordinates(coordList)
......@@ -135,6 +139,10 @@ Item {
}
function fitMapViewportToAllItems() {
if (!mapMissionController.visualItems) {
// Being called prior to controller.start
return
}
var coordList = [ ]
addMissionItemCoordsForFit(coordList)
addFenceItemCoordsForFit(coordList)
......
......@@ -160,7 +160,6 @@ Rectangle {
}
QGCLabel {
Layout.row: 2
text: qsTr("Cruise speed:")
visible: _showCruiseSpeed
Layout.fillWidth: true
......@@ -172,7 +171,6 @@ Rectangle {
}
QGCLabel {
Layout.row: 3
text: qsTr("Hover speed:")
visible: _showHoverSpeed
Layout.fillWidth: true
......
......@@ -25,29 +25,35 @@ Item {
property var _missionItem: object
property var _itemVisual
property var _dragArea
property bool _itemVisualShowing: false
property bool _dragAreaShowing: false
function hideItemVisuals() {
if (_itemVisualShowing) {
_itemVisual.destroy()
_itemVisual = undefined
_itemVisualShowing = false
}
}
function showItemVisuals() {
if (!_itemVisual) {
if (!_itemVisualShowing) {
_itemVisual = indicatorComponent.createObject(map)
map.addMapItem(_itemVisual)
_itemVisualShowing = true
}
}
function hideDragArea() {
if (_dragArea) {
if (_dragAreaShowing) {
_dragArea.destroy()
_dragArea = undefined
_dragAreaShowing = false
}
}
function showDragArea() {
if (!_dragArea) {
if (!_dragAreaShowing) {
_dragArea = dragAreaComponent.createObject(map)
_dragAreaShowing = true
}
}
......
......@@ -76,6 +76,7 @@ Item {
anchorPoint.y: sourceItem.anchorPointY
z: QGroundControl.zOrderMapItems
coordinate: _missionItem.coordinate
visible: _missionItem.exitCoordinate.isValid
sourceItem:
MissionItemIndexLabel {
......@@ -96,6 +97,7 @@ Item {
anchorPoint.y: sourceItem.anchorPointY
z: QGroundControl.zOrderMapItems
coordinate: _missionItem.exitCoordinate
visible: _missionItem.exitCoordinate.isValid
sourceItem:
MissionItemIndexLabel {
......
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