Fixed an issue where brackets were removed from game names in collection system views.

This commit is contained in:
Leon Styhre 2021-09-23 17:11:49 +02:00
parent 0c3a7d7d94
commit ed7843e898

View file

@ -1353,10 +1353,10 @@ void CollectionFileData::refreshMetadata()
const std::string& CollectionFileData::getName() const std::string& CollectionFileData::getName()
{ {
if (mDirty) { if (mDirty) {
mCollectionFileName = mCollectionFileName = mSourceFileData->metadata.get("name");
Utils::String::removeParenthesis(mSourceFileData->metadata.get("name")); mCollectionFileName.append(" [")
mCollectionFileName += .append(Utils::String::toUpper(mSourceFileData->getSystem()->getName()))
" [" + Utils::String::toUpper(mSourceFileData->getSystem()->getName()) + "]"; .append("]");
mDirty = false; mDirty = false;
} }