mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Fix folder dialog on linux so that we can select the folder properly. (#2541)
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
parent
a34b0d78cb
commit
cd100c8339
@ -96,7 +96,7 @@ Rectangle {
|
|||||||
|
|
||||||
function openFolderDialog(currentFolder, onAccepted) {
|
function openFolderDialog(currentFolder, onAccepted) {
|
||||||
folderDialog.currentFolder = currentFolder;
|
folderDialog.currentFolder = currentFolder;
|
||||||
folderDialog.accepted.connect(function() { onAccepted(folderDialog.currentFolder); });
|
folderDialog.accepted.connect(function() { onAccepted(folderDialog.selectedFolder); });
|
||||||
folderDialog.open();
|
folderDialog.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ Item {
|
|||||||
|
|
||||||
function openFolderDialog(currentFolder, onAccepted) {
|
function openFolderDialog(currentFolder, onAccepted) {
|
||||||
folderDialog.currentFolder = currentFolder;
|
folderDialog.currentFolder = currentFolder;
|
||||||
folderDialog.accepted.connect(function() { onAccepted(folderDialog.currentFolder); });
|
folderDialog.accepted.connect(function() { onAccepted(folderDialog.selectedFolder); });
|
||||||
folderDialog.open();
|
folderDialog.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user