From 1acf96dfa1780d6a494b8beca177b8034eaef62d Mon Sep 17 00:00:00 2001 From: "c.lamboo" Date: Wed, 30 Mar 2022 15:13:34 +0200 Subject: [PATCH] Update file dialog properties Due to API change CURA-8640 --- resources/qml/Cura.qml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index 24ab9dc48a..e4a8a9ee48 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -635,14 +635,9 @@ UM.MainWindow //: File open dialog title title: catalog.i18nc("@title:window","Open file(s)") modality: Qt.WindowModal - selectMultiple: true + fileMode: FileDialog.OpenFiles nameFilters: UM.MeshFileHandler.supportedReadFileTypes; - folder: - { - //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"); - } + currentFolder: CuraApplication.getDefaultPath("dialog_load_path") onAccepted: { // Because several implementations of the file dialog only update the folder