Update file dialog properties

Due to API change

CURA-8640
This commit is contained in:
c.lamboo 2022-03-30 15:13:34 +02:00
parent 337e2aa4bb
commit 1acf96dfa1

View File

@ -635,14 +635,9 @@ UM.MainWindow
//: File open dialog title //: File open dialog title
title: catalog.i18nc("@title:window","Open file(s)") title: catalog.i18nc("@title:window","Open file(s)")
modality: Qt.WindowModal modality: Qt.WindowModal
selectMultiple: true fileMode: FileDialog.OpenFiles
nameFilters: UM.MeshFileHandler.supportedReadFileTypes; nameFilters: UM.MeshFileHandler.supportedReadFileTypes;
folder: currentFolder: CuraApplication.getDefaultPath("dialog_load_path")
{
//Because several implementations of the file dialog only update the folder when it is explicitly set.
folder = CuraApplication.getDefaultPath("dialog_load_path");
return CuraApplication.getDefaultPath("dialog_load_path");
}
onAccepted: onAccepted:
{ {
// Because several implementations of the file dialog only update the folder // Because several implementations of the file dialog only update the folder