[CardInfo] Refactor: remove properties setters

This commit is contained in:
RickyRister 2026-08-03 01:02:33 -07:00
parent 1ed9823b56
commit de125338da
8 changed files with 22 additions and 61 deletions

View file

@ -314,7 +314,6 @@ void CockatriceXml4Parser::loadCardsFromXml(QXmlStreamReader &xml)
QString setName = xml.readElementText(QXmlStreamReader::IncludeChildElements);
auto set = internalAddSet(setName);
if (set->getEnabled()) {
PrintingInfo printingInfo(set);
QHash<QString, QString> printingProps;
for (QXmlStreamAttribute attr : attrs) {
QString attrName = attr.name().toString();
@ -323,7 +322,7 @@ void CockatriceXml4Parser::loadCardsFromXml(QXmlStreamReader &xml)
}
printingProps.insert(attrName, attr.value().toString());
}
printingInfo.setProperties(printingProps);
PrintingInfo printingInfo(set, printingProps);
// This is very much a hack and not the right place to
// put this check, as it requires a reload of Cockatrice