Commit 109931a4 authored by Gus Grubba's avatar Gus Grubba

Split data persistence from logging along with wording about what disabling persistence entails.

parent f0d0856f
...@@ -359,16 +359,16 @@ QGCView { ...@@ -359,16 +359,16 @@ QGCView {
text: qsTr("Data Persistence") text: qsTr("Data Persistence")
} }
Rectangle { Rectangle {
Layout.preferredHeight: loggingCol.height + (_margins * 2) Layout.preferredHeight: dataPersistCol.height + (_margins * 2)
Layout.preferredWidth: loggingCol.width + (_margins * 2) Layout.preferredWidth: dataPersistCol.width + (_margins * 2)
color: qgcPal.windowShade color: qgcPal.windowShade
Layout.fillWidth: true Layout.fillWidth: true
ColumnLayout { ColumnLayout {
id: loggingCol id: dataPersistCol
anchors.margins: _margins anchors.margins: _margins
anchors.top: parent.top anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
spacing: _margins spacing: _margins * 1.5
FactCheckBox { FactCheckBox {
id: disableDataPersistence id: disableDataPersistence
text: qsTr("Disable all data persistence") text: qsTr("Disable all data persistence")
...@@ -376,6 +376,30 @@ QGCView { ...@@ -376,6 +376,30 @@ QGCView {
visible: _disableDataPersistence.visible visible: _disableDataPersistence.visible
property Fact _disableDataPersistence: QGroundControl.settingsManager.appSettings.disableAllPersistence property Fact _disableDataPersistence: QGroundControl.settingsManager.appSettings.disableAllPersistence
} }
QGCLabel {
text: qsTr("When Data Persistence is disabled, all telemetry logging and map tile caching is disabled and not written to disk.")
wrapMode: Text.WordWrap
font.pointSize: ScreenTools.smallFontPointSize
Layout.maximumWidth: logIfNotArmed.visible ? logIfNotArmed.width : disableDataPersistence.width * 1.5
}
}
}
Item { width: 1; height: _margins }
QGCLabel {
text: qsTr("Telemetry Logs from Vehicle")
}
Rectangle {
Layout.preferredHeight: loggingCol.height + (_margins * 2)
Layout.preferredWidth: loggingCol.width + (_margins * 2)
color: qgcPal.windowShade
Layout.fillWidth: true
ColumnLayout {
id: loggingCol
anchors.margins: _margins
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
spacing: _margins
FactCheckBox { FactCheckBox {
id: promptSaveLog id: promptSaveLog
text: qsTr("Save log after each flight") text: qsTr("Save log after each flight")
...@@ -396,7 +420,6 @@ QGCView { ...@@ -396,7 +420,6 @@ QGCView {
} }
Item { width: 1; height: _margins } Item { width: 1; height: _margins }
QGCLabel { QGCLabel {
id: flyViewSectionLabel id: flyViewSectionLabel
text: qsTr("Fly View") text: qsTr("Fly View")
......
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