From 0551ea39bce36b2be4a2e542da50f3c6438dd848 Mon Sep 17 00:00:00 2001 From: Gus Grubba Date: Mon, 29 Jul 2019 23:11:52 -0400 Subject: [PATCH] If in vehicle setup view and advanced mode is switched off, go to summary page. --- src/VehicleSetup/SetupView.qml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/VehicleSetup/SetupView.qml b/src/VehicleSetup/SetupView.qml index ca6a2b942..ab366415b 100644 --- a/src/VehicleSetup/SetupView.qml +++ b/src/VehicleSetup/SetupView.qml @@ -98,8 +98,16 @@ Rectangle { Component.onCompleted: showSummaryPanel() Connections { - target: QGroundControl.multiVehicleManager + target: QGroundControl.corePlugin + onShowAdvancedUIChanged: { + if(!QGroundControl.corePlugin.showAdvancedUI) { + showSummaryPanel() + } + } + } + Connections { + target: QGroundControl.multiVehicleManager onParameterReadyVehicleAvailableChanged: { if(!QGroundControl.skipSetupPage) { if (QGroundControl.multiVehicleManager.parameterReadyVehicleAvailable || summaryButton.checked || setupButtonGroup.current != firmwareButton) { @@ -116,10 +124,8 @@ Rectangle { Component { id: noComponentsVehicleSummaryComponent - Rectangle { color: qgcPal.windowShade - QGCLabel { anchors.margins: _defaultTextWidth * 2 anchors.fill: parent @@ -129,7 +135,6 @@ Rectangle { font.pointSize: ScreenTools.mediumFontPointSize text: qsTr("%1 does not currently support setup of your vehicle type. ").arg(QGroundControl.appName) + "If your vehicle is already configured you can still Fly." - onLinkActivated: Qt.openUrlExternally(link) } } @@ -137,10 +142,8 @@ Rectangle { Component { id: disconnectedVehicleSummaryComponent - Rectangle { color: qgcPal.windowShade - QGCLabel { anchors.margins: _defaultTextWidth * 2 anchors.fill: parent -- 2.22.0