Display custom header values according to type

This commit is contained in:
GriffinR
2022-10-15 03:22:51 -04:00
parent 6ffcb58e5e
commit ec626a59a7
4 changed files with 23 additions and 5 deletions

View File

@@ -412,7 +412,7 @@ bool Project::loadMapData(Map* map) {
QSet<QString> baseFields = this->getTopLevelMapFields();
for (QString key : mapObj.keys()) {
if (!baseFields.contains(key)) {
map->customHeaders.insert(key, ParseUtil::jsonToQString(mapObj[key]));
map->customHeaders.insert(key, mapObj[key]);
}
}
@@ -1440,7 +1440,7 @@ void Project::saveMap(Map *map) {
// Custom header fields.
for (QString key : map->customHeaders.keys()) {
mapObj[key] = map->customHeaders[key];
//mapObj[key] = map->customHeaders[key];
}
OrderedJson mapJson(mapObj);