Append options metadata while creating project

This commit is contained in:
Tiago Fernandez 2017-12-18 11:38:07 +01:00
parent eeb8ade5c0
commit 278f24c147

View File

@ -1008,6 +1008,8 @@ public class ImportingUtilities {
ProjectMetadata pm = new ProjectMetadata();
pm.setName(JSONUtilities.getString(optionObj, "projectName", "Untitled"));
pm.setTags(JSONUtilities.getStringArray(optionObj, "projectTags"));
pm.appendImportOptionMetadata(optionObj);
String encoding = JSONUtilities.getString(optionObj, "encoding", "UTF-8");
if ("".equals(encoding)) {
// encoding can be present, but empty, which won't trigger JSONUtilities default processing