From 3f3db43aeca87b37282cb751e6268571e8b54a24 Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Sun, 19 Mar 2017 14:46:41 -0700 Subject: [PATCH] Fix Vehicle Info show/hide states --- src/MissionEditor/MissionSettingsEditor.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/MissionEditor/MissionSettingsEditor.qml b/src/MissionEditor/MissionSettingsEditor.qml index a2af6bbeb..b4c13635e 100644 --- a/src/MissionEditor/MissionSettingsEditor.qml +++ b/src/MissionEditor/MissionSettingsEditor.qml @@ -41,7 +41,7 @@ Rectangle { property var _missionVehicle: missionController.vehicle property bool _offlineEditing: _missionVehicle.isOfflineEditingVehicle - property bool _showOfflineEditingCombos: _offlineEditing && _noMissionItemsAdded + property bool _showOfflineVehicleCombos: _offlineEditing && _multipleFirmware && _noMissionItemsAdded property bool _showCruiseSpeed: !_missionVehicle.multiRotor property bool _showHoverSpeed: _missionVehicle.multiRotor || _missionVehicle.vtol property bool _multipleFirmware: QGroundControl.supportedFirmwareCount > 2 @@ -123,7 +123,7 @@ Rectangle { SectionHeader { id: vehicleInfoSectionHeader text: qsTr("Vehicle Info") - visible: _multipleFirmware && _showOfflineEditingCombos + visible: _offlineEditing checked: false exclusiveGroup: sectionHeaderGroup } @@ -139,21 +139,25 @@ Rectangle { QGCLabel { text: _firmwareLabel Layout.fillWidth: true + visible: _showOfflineVehicleCombos } FactComboBox { fact: QGroundControl.settingsManager.appSettings.offlineEditingFirmwareType indexModel: false Layout.preferredWidth: _fieldWidth + visible: _showOfflineVehicleCombos } QGCLabel { text: _vehicleLabel Layout.fillWidth: true + visible: _showOfflineVehicleCombos } FactComboBox { fact: QGroundControl.settingsManager.appSettings.offlineEditingVehicleType indexModel: false Layout.preferredWidth: _fieldWidth + visible: _showOfflineVehicleCombos } QGCLabel { -- 2.22.0