mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Compute deck hashes lazily (#5707)
* Calculate deck hashes lazily * rename
This commit is contained in:
parent
9b00bdcaea
commit
ec536126b9
3 changed files with 43 additions and 21 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue