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 {
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