This commit is contained in:
Saifeddine ALOUI 2024-12-15 17:30:45 +01:00
parent ef1286273b
commit eb56dc77c9

View File

@ -114,8 +114,7 @@ def select_rag_database(client) -> Optional[Dict[str, Path]]:
dialog.activateWindow()
# Add a custom filter to show network folders
dialog.setNameFilter("All Files (*)")
dialog.setViewMode(QFileDialog.List)
dialog.setFileMode(QFileDialog.Directory)
# Show the dialog modally
if dialog.exec_() == QFileDialog.Accepted: