Fix model path.

This commit is contained in:
Adam Treat 2023-07-09 11:31:01 -04:00
parent d611d10747
commit 85626b3dab

View File

@ -401,9 +401,9 @@ MyDialog {
FolderDialog { FolderDialog {
id: modelPathDialog id: modelPathDialog
title: "Please choose a directory" title: "Please choose a directory"
currentFolder: "file://" + MySettings.modelsPath currentFolder: "file://" + MySettings.modelPath
onAccepted: { onAccepted: {
MySettings.modelsPath = selectedFolder MySettings.modelPath = selectedFolder
} }
} }
Label { Label {
@ -424,7 +424,7 @@ MyDialog {
Accessible.description: ToolTip.text Accessible.description: ToolTip.text
onEditingFinished: { onEditingFinished: {
if (isValid) { if (isValid) {
MySettings.modelsPath = modelPathDisplayField.text MySettings.modelPath = modelPathDisplayField.text
} else { } else {
text = MySettings.modelPath text = MySettings.modelPath
} }