Unverified Commit 10a51723 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Fix combo box updating (#9153)

parent e6e27651
......@@ -29,7 +29,7 @@ QGCComboBox {
property bool showIndicator: _multipleVehicles
property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
property bool _multipleVehicles: _activeVehicle ? QGroundControl.multiVehicleManager.vehicles.count > 1 : false
property bool _multipleVehicles: QGroundControl.multiVehicleManager.vehicles.count > 1
property var _vehicleModel: [ ]
Connections {
......@@ -37,7 +37,8 @@ QGCComboBox {
onCountChanged: _updateVehicleModel()
}
Component.onCompleted: _updateVehicleModel()
Component.onCompleted: _updateVehicleModel()
on_ActiveVehicleChanged: _updateVehicleModel()
function _updateVehicleModel() {
var newCurrentIndex = -1
......
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