Skip to content

Commit ce4eff3

Browse files
committed
Remove unecessary activeVehicle tracking
* This was causing main window to close when activeVehicle went away * They are not needed since there are already correct activeVehicle checks which cause map items to hide
1 parent b08da9e commit ce4eff3

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/FlightDisplay/FlyViewMap.qml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -388,15 +388,6 @@ FlightMap {
388388
globals.guidedControllerFlyView.fwdFlightGotoMapCircle = this
389389
}
390390

391-
Connections {
392-
target: QGroundControl.multiVehicleManager
393-
function onActiveVehicleChanged(activeVehicle) {
394-
if (!activeVehicle) {
395-
visible = false
396-
}
397-
}
398-
}
399-
400391
Binding {
401392
target: _fwdFlightGotoMapCircle
402393
property: "center"
@@ -472,15 +463,6 @@ FlightMap {
472463
}
473464
}
474465

475-
Connections {
476-
target: QGroundControl.multiVehicleManager
477-
function onActiveVehicleChanged(activeVehicle) {
478-
if (!activeVehicle) {
479-
hide()
480-
}
481-
}
482-
}
483-
484466
function show(coord) {
485467
gotoLocationItem.coordinate = coord
486468
gotoLocationItem.visible = true

0 commit comments

Comments
 (0)