From e29e33aee2e29aab835156c76236ce1600bcbd8d Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Sun, 18 Feb 2018 10:10:21 -0800 Subject: [PATCH] Hide camera section when in waypoints only mode --- src/PlanView/MissionSettingsEditor.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PlanView/MissionSettingsEditor.qml b/src/PlanView/MissionSettingsEditor.qml index 544fa89..9cb6368 100644 --- a/src/PlanView/MissionSettingsEditor.qml +++ b/src/PlanView/MissionSettingsEditor.qml @@ -36,6 +36,7 @@ Rectangle { property var _fileExtension: QGroundControl.settingsManager.appSettings.missionFileExtension property var _appSettings: QGroundControl.settingsManager.appSettings property bool _waypointsOnlyMode: QGroundControl.corePlugin.options.missionWaypointsOnly + property bool _showCameraSection: !_waypointsOnlyMode || QGroundControl.corePlugin.showAdvancedUI readonly property string _firmwareLabel: qsTr("Firmware") readonly property string _vehicleLabel: qsTr("Vehicle") @@ -91,6 +92,7 @@ Rectangle { CameraSection { id: cameraSection checked: missionItem.cameraSection.settingsSpecified + visible: _showCameraSection } QGCLabel { @@ -100,7 +102,7 @@ Rectangle { wrapMode: Text.WordWrap horizontalAlignment: Text.AlignHCenter font.pointSize: ScreenTools.smallFontPointSize - visible: cameraSection.checked + visible: _showCameraSection && cameraSection.checked } SectionHeader {