Commit 4c863206 authored by Don Gagne's avatar Don Gagne

Merge pull request #2764 from DonLakeFlyer/SetupReload

Fix conditions for showing Summary on lost vehicle
parents a9ca7751 f8e39cb7
...@@ -120,9 +120,11 @@ Rectangle { ...@@ -120,9 +120,11 @@ Rectangle {
target: multiVehicleManager target: multiVehicleManager
onParameterReadyVehicleAvailableChanged: { onParameterReadyVehicleAvailableChanged: {
if (parameterReadyVehicleAvailable || summaryButton.checked) { if (parameterReadyVehicleAvailable || summaryButton.checked || setupButtonGroup.current != firmwareButton) {
// When a new vehicle shows up we switch to the Summary View. If the Summary View is already showing // Show/Reload the Summary panel when:
// and a vehicle goes away, we must reload it to show new disconnected Qml // 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 summaryButton.checked = true
showSummaryPanel() showSummaryPanel()
} }
......
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