Commit e2696ac4 authored by Don Gagne's avatar Don Gagne Committed by DonLakeFlyer

Merge pull request #8802 from mavlink/LogReplayLoad

Mobile Log Replay: Fix file dialog
parent 44d55231
...@@ -16,6 +16,7 @@ Note: This file only contains high level features or important fixes. ...@@ -16,6 +16,7 @@ Note: This file only contains high level features or important fixes.
## 4.0.8 - Not yet released ## 4.0.8 - Not yet released
* iOS: Modify QGC file storage location to support new Files app * iOS: Modify QGC file storage location to support new Files app
* Mobile: Fix Log Replay status bar file selection
## 4.0.7 - Stable ## 4.0.7 - Stable
......
...@@ -28,13 +28,16 @@ Rectangle { ...@@ -28,13 +28,16 @@ Rectangle {
QGCFileDialog { QGCFileDialog {
id: filePicker id: filePicker
title: qsTr("Select Telemetery Log") title: qsTr("Select Telemetery Log")
nameFilters: [qsTr("Telemetry Logs (*.%1)").arg(QGroundControl.settingsManager.appSettings.telemetryFileExtension), qsTr("All Files (*)")] nameFilters: [qsTr("Telemetry Logs (*.%1)").arg(_logFileExtension), qsTr("All Files (*)")]
fileExtension: _logFileExtension
selectExisting: true selectExisting: true
folder: QGroundControl.settingsManager.appSettings.telemetrySavePath folder: QGroundControl.settingsManager.appSettings.telemetrySavePath
onAcceptedForLoad: { onAcceptedForLoad: {
controller.link = QGroundControl.linkManager.startLogReplay(file) controller.link = QGroundControl.linkManager.startLogReplay(file)
close() close()
} }
property string _logFileExtension: QGroundControl.settingsManager.appSettings.telemetryFileExtension
} }
LogReplayLinkController { LogReplayLinkController {
......
...@@ -39,8 +39,8 @@ CheckBox { ...@@ -39,8 +39,8 @@ CheckBox {
implicitHeight: implicitWidth implicitHeight: implicitWidth
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
color: control.enabled ? "white" : "gray" color: control.enabled ? "white" : _qgcPal.text
border.color: qgcPal.text border.color: _qgcPal.text
border.width: 1 border.width: 1
opacity: control.checkedState === Qt.PartiallyChecked ? 0.5 : 1 opacity: control.checkedState === Qt.PartiallyChecked ? 0.5 : 1
QGCColoredImage { QGCColoredImage {
......
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