1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-19 06:47:44 +00:00

Show the layer names instead of naming them by index

For some reason SqEX ships their internal names of layers in retail, so
we can show them!
This commit is contained in:
Joshua Goins 2025-05-17 11:35:49 -04:00
parent 77f93c5224
commit 505802706a

View file

@ -143,7 +143,7 @@ void ObjectListModel::refresh()
auto layerItem = new TreeInformation(); auto layerItem = new TreeInformation();
layerItem->type = TreeType::Layer; layerItem->type = TreeType::Layer;
layerItem->parent = fileItem; layerItem->parent = fileItem;
layerItem->name = i18n("Layer %1", j); // TODO: do display names if we have them layerItem->name = QString::fromLatin1(layer.name);
layerItem->row = j; layerItem->row = j;
layerItem->id = layer.id; layerItem->id = layer.id;
fileItem->children.push_back(layerItem); fileItem->children.push_back(layerItem);