Commit f8e39cb7 authored by Don Gagne's avatar Don Gagne

Fix conditions for showing Summary on lost vehicle

parent 82fa217b
......@@ -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()
}
......
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