Browse Source

Merge pull request #2764 from DonLakeFlyer/SetupReload

Fix conditions for showing Summary on lost vehicle
QGC4.4
Don Gagne 9 years ago
parent
commit
4c86320636
  1. 8
      src/VehicleSetup/SetupView.qml

8
src/VehicleSetup/SetupView.qml

@ -120,9 +120,11 @@ Rectangle { @@ -120,9 +120,11 @@ Rectangle {
target: multiVehicleManager
onParameterReadyVehicleAvailableChanged: {
if (parameterReadyVehicleAvailable || summaryButton.checked) {
// When a new vehicle shows up we switch to the Summary View. If the Summary View is already showing
// and a vehicle goes away, we must reload it to show new disconnected Qml
if (parameterReadyVehicleAvailable || summaryButton.checked || setupButtonGroup.current != firmwareButton) {
// Show/Reload the Summary panel when:
// A new vehicle shows up
// The summary panel is already showing and the active vehicle goes away
// The active vehicle goes away and we are not on the Firmware panel.
summaryButton.checked = true
showSummaryPanel()
}

Loading…
Cancel
Save