From 9979c78c6c8b5a4fab586661136dbeae3ec0227e Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Fri, 28 Apr 2023 22:24:59 -0400 Subject: [PATCH] Set the folder when the browse opens --- qml/ModelDownloaderDialog.qml | 1 + qml/SettingsDialog.qml | 1 + 2 files changed, 2 insertions(+) diff --git a/qml/ModelDownloaderDialog.qml b/qml/ModelDownloaderDialog.qml index 93187e33..d6ffeb64 100644 --- a/qml/ModelDownloaderDialog.qml +++ b/qml/ModelDownloaderDialog.qml @@ -325,6 +325,7 @@ Dialog { FolderDialog { id: modelPathDialog title: "Please choose a directory" + folder: Download.downloadLocalModelsPath onAccepted: { Download.downloadLocalModelsPath = selectedFolder settings.modelPath = Download.downloadLocalModelsPath diff --git a/qml/SettingsDialog.qml b/qml/SettingsDialog.qml index 556a9d09..2dcfc60f 100644 --- a/qml/SettingsDialog.qml +++ b/qml/SettingsDialog.qml @@ -538,6 +538,7 @@ The prompt below is a question to answer, a task to complete, or a conversation FolderDialog { id: modelPathDialog title: "Please choose a directory" + folder: Download.downloadLocalModelsPath onAccepted: { Download.downloadLocalModelsPath = selectedFolder settings.modelPath = Download.downloadLocalModelsPath