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
This commit is contained in:
Kostas Karmas 2021-02-05 12:14:01 +01:00
parent e2699a5ab8
commit ee22be74b9

View file

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