Commit b9d1f982 authored by Jacob Walser's avatar Jacob Walser

Fix video save path in general settings

parent daf18492
...@@ -556,14 +556,17 @@ QGCView { ...@@ -556,14 +556,17 @@ QGCView {
QGCButton { QGCButton {
id: videoBrowse id: videoBrowse
text: "Browse" text: "Browse"
onClicked: videoDialog.visible = true onClicked: videoDialog.openForLoad()
FileDialog { QGCFileDialog {
id: videoDialog id: videoDialog
title: "Choose a location to save video files." title: "Choose a location to save video files."
folder: "file://" + _videoPath.value folder: "file://" + _videoPath.value
selectFolder: true selectFolder: true
onAccepted: _videoPath.value = QGroundControl.urlToLocalFile(videoDialog.fileUrl)
onAcceptedForLoad: {
_videoPath.value = file
}
} }
} }
} }
......
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