Skip to content

Commit

Permalink
FlightModeMenu: fix mode list not updating when changed by advanced mode
Browse files Browse the repository at this point in the history
If advanced mode changed which flight modes can be set, these changes
were not visible in the UI.
  • Loading branch information
or-rhssk authored and DonLakeFlyer committed Dec 27, 2024
1 parent 2d03c0e commit c20029c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/QmlControls/FlightModeMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ QGCLabel {
function onActiveVehicleChanged(activeVehicle) { _root.updateFlightModesMenu() }
}

Connections {
target: currentVehicle
function onFlightModesChanged() { _root.updateFlightModesMenu() }
}

MouseArea {
id: mouseArea
visible: currentVehicle && currentVehicle.flightModeSetAvailable
Expand Down

0 comments on commit c20029c

Please sign in to comment.