Fix problems with browse of folder in settings dialog.

This commit is contained in:
Adam Treat
2023-07-09 13:05:06 -04:00
parent 58d6f40f50
commit d9f0245c1b
4 changed files with 23 additions and 19 deletions

View File

@@ -21,15 +21,6 @@ MySettingsTab {
property alias collection: collection.text
property alias folder_path: folderEdit.text
FolderDialog {
id: folderDialog
title: "Please choose a directory"
currentFolder: StandardPaths.writableLocation(StandardPaths.HomeLocation)
onAccepted: {
root.folder_path = selectedFolder
}
}
Item {
Layout.fillWidth: true
height: row.height
@@ -79,7 +70,9 @@ MySettingsTab {
id: browseButton
text: qsTr("Browse")
onClicked: {
folderDialog.open();
openFolderDialog(StandardPaths.writableLocation(StandardPaths.HomeLocation), function(selectedFolder) {
root.folder_path = selectedFolder
})
}
}