Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostas Karmas <konskarm@gmail.com>2021-02-08 13:55:28 +0300
committerKostas Karmas <konskarm@gmail.com>2021-02-08 13:55:28 +0300
commitf8a9e7f2d27a96b8a657cf7772773f43d65ecebc (patch)
tree9014262bbe456a860d5794d6a545b55b87023630 /resources/qml/Cura.qml
parentb54f792561ee3ebac98acb7eb7a19c8cef7b7b80 (diff)
Pass the "add to recent" as an input var to dialogs that open projects
This way it is clear before to the dialog whether it should add the file to the recent files list, before the dialog opens. CURA-7996
Diffstat (limited to 'resources/qml/Cura.qml')
-rw-r--r--resources/qml/Cura.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml
index bb7b5ac19c..a00dc627a9 100644
--- a/resources/qml/Cura.qml
+++ b/resources/qml/Cura.qml
@@ -691,6 +691,9 @@ UM.MainWindow
function handleOpenFiles(selectedMultipleFiles, hasProjectFile, fileUrlList, projectFileUrlList)
{
+ // Make sure the files opened through the openFilesIncludingProjectDialog are added to the recent files list
+ openFilesIncludingProjectsDialog.addtoRecent = true;
+
// we only allow opening one project file
if (selectedMultipleFiles && hasProjectFile)
{
@@ -717,6 +720,7 @@ UM.MainWindow
{
// ask whether to open as project or as models
askOpenAsProjectOrModelsDialog.fileUrl = projectFile;
+ askOpenAsProjectOrModelsDialog.addToRecent = true;
askOpenAsProjectOrModelsDialog.show();
}
}
@@ -776,6 +780,7 @@ UM.MainWindow
onOpenProjectFile:
{
askOpenAsProjectOrModelsDialog.fileUrl = project_file;
+ askOpenAsProjectOrModelsDialog.addToRecent = add_to_recent_files;
askOpenAsProjectOrModelsDialog.show();
}
}