add comment to explain the action

This commit is contained in:
Kayla Man 2024-04-19 17:27:34 +08:00
parent 70b11f9a50
commit cdfe59fd18

View file

@ -136,6 +136,8 @@ class SubstanceProjectConfigurationWindow(QtWidgets.QDialog):
templates = self.project_templates
name = self.template_name
if not name:
# if user close the dialog,
# template name would be None
return None
template = get_template_by_name(name, templates)
template = copy.deepcopy(template) # do not edit the original