[CardInfo] Refactor: remove properties setters (#7070)

This commit is contained in:
RickyRister 2026-08-07 11:50:58 -07:00 • committed by GitHub
parent 32619f4d55
commit 0d14fb77a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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