From ee22be74b9285ee9e5bcbee2f1c3e76c4c90b392 Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Fri, 5 Feb 2021 12:14:01 +0100 Subject: [PATCH] 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 --- resources/qml/Dialogs/AskOpenAsProjectOrModelsDialog.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/qml/Dialogs/AskOpenAsProjectOrModelsDialog.qml b/resources/qml/Dialogs/AskOpenAsProjectOrModelsDialog.qml index 8c29fc7845..eee8ab45db 100644 --- a/resources/qml/Dialogs/AskOpenAsProjectOrModelsDialog.qml +++ b/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() }