mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-04-29 04:04:22 +00:00
Signed-off-by: Adam Treat <treat.adam@gmail.com> Signed-off-by: Jared Van Bortel <jared@nomic.ai> Co-authored-by: Jared Van Bortel <jared@nomic.ai>
15 lines
379 B
QML
15 lines
379 B
QML
import QtCore
|
|
import QtQuick
|
|
import QtQuick.Dialogs
|
|
|
|
FolderDialog {
|
|
id: folderDialog
|
|
title: qsTr("Please choose a directory")
|
|
|
|
function openFolderDialog(currentFolder, onAccepted) {
|
|
folderDialog.currentFolder = currentFolder;
|
|
folderDialog.accepted.connect(function() { onAccepted(folderDialog.selectedFolder); });
|
|
folderDialog.open();
|
|
}
|
|
}
|