Browse Source

Properly check whether the file should be added to recent

When importing only the models of a project file, Cura wasn't checking whether the file should
be added to the recent files list. This commit fixes that.

CURA-7996
Kostas Karmas 4 years ago
parent
commit
ee22be74b9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      resources/qml/Dialogs/AskOpenAsProjectOrModelsDialog.qml

+ 2 - 1
resources/qml/Dialogs/AskOpenAsProjectOrModelsDialog.qml

@@ -50,7 +50,8 @@ UM.Dialog
             UM.Preferences.setValue("cura/choice_on_open_project", "open_as_model")
         }
 
-        CuraApplication.readLocalFile(base.fileUrl, "open_as_model")
+        var addToRecent = UM.WorkspaceFileHandler.getAddToRecentFilesHint(base.fileUrl);
+        CuraApplication.readLocalFile(base.fileUrl, "open_as_model", addToRecent)
 
         base.hide()
     }