Compute deck hashes lazily (#5707)

* Calculate deck hashes lazily

* rename
This commit is contained in:
RickyRister 2025-03-11 18:43:21 -07:00 committed by GitHub
parent 9b00bdcaea
commit ec536126b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 43 additions and 21 deletions

View file

@ -262,7 +262,7 @@ bool DeckListModel::setData(const QModelIndex &index, const QVariant &value, con
}
emitRecursiveUpdates(index);
deckList->updateDeckHash();
deckList->refreshDeckHash();
return true;
}
@ -398,7 +398,7 @@ QModelIndex DeckListModel::addCard(const QString &cardName,
cardNode->setCardSetShortName(cardSetName);
cardNode->setCardCollectorNumber(cardInfoSet.getProperty("num"));
cardNode->setCardProviderId(cardInfoSet.getProperty("uuid"));
deckList->updateDeckHash();
deckList->refreshDeckHash();
}
sort(lastKnownColumn, lastKnownOrder);
emitRecursiveUpdates(parentIndex);