Skip to content

Commit 390bbfc

Browse files
rubenp02DonLakeFlyer
authored andcommitted
Fix Orbit and Go here map items disappearing
Fixed an issue where the Orbit and Go here map items would disappear upon opening the map click drop panel. Also tweaked the formatting of the conditional expression that controls the panel's opening.
1 parent 23eb65e commit 390bbfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FlightDisplay/FlyViewMap.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,9 @@ FlightMap {
663663

664664
onMapClicked: (position) => {
665665
if (!globals.guidedControllerFlyView.guidedUIVisible &&
666-
(globals.guidedControllerFlyView.showGotoLocation || globals.guidedControllerFlyView.showOrbit || globals.guidedControllerFlyView.showROI || globals.guidedControllerFlyView.showSetHome || globals.guidedControllerFlyView.showSetEstimatorOrigin)) {
667-
orbitMapCircle.hide()
668-
gotoLocationItem.hide()
666+
(globals.guidedControllerFlyView.showGotoLocation || globals.guidedControllerFlyView.showOrbit ||
667+
globals.guidedControllerFlyView.showROI || globals.guidedControllerFlyView.showSetHome ||
668+
globals.guidedControllerFlyView.showSetEstimatorOrigin)) {
669669

670670
position = Qt.point(position.x, position.y)
671671
var clickCoord = _root.toCoordinate(position, false /* clipToViewPort */)

0 commit comments

Comments
 (0)