mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-02 00:34:26 +08:00
Update file dialog properties
Due to API change CURA-8640
This commit is contained in:
parent
337e2aa4bb
commit
1acf96dfa1
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user