mirror of
https://github.com/huderlem/porymap.git
synced 2026-10-04 13:56:45 -05:00
Display custom header values according to type
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user