Skip to content

Commit ee7bc77

Browse files
committed
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 7387648 commit ee7bc77

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
@@ -674,9 +674,9 @@ FlightMap {
674674

675675
onMapClicked: (position) => {
676676
if (!globals.guidedControllerFlyView.guidedUIVisible &&
677-
(globals.guidedControllerFlyView.showGotoLocation || globals.guidedControllerFlyView.showOrbit || globals.guidedControllerFlyView.showROI || globals.guidedControllerFlyView.showSetHome || globals.guidedControllerFlyView.showSetEstimatorOrigin)) {
678-
orbitMapCircle.hide()
679-
gotoLocationItem.hide()
677+
(globals.guidedControllerFlyView.showGotoLocation || globals.guidedControllerFlyView.showOrbit ||
678+
globals.guidedControllerFlyView.showROI || globals.guidedControllerFlyView.showSetHome ||
679+
globals.guidedControllerFlyView.showSetEstimatorOrigin)) {
680680

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

0 commit comments

Comments
 (0)