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
@@ -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()