forked from External/mage
* Performance: memory usage optimization for deck editor (improved search for low end computers, see #7177);
This commit is contained in:
parent
275e996c08
commit
c1dea5b21e
5 changed files with 81 additions and 7 deletions
|
|
@ -71,6 +71,17 @@ public class TableModel extends AbstractTableModel implements ICardGrid {
|
|||
this.view.clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getCardsStore() {
|
||||
return this.cards;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearCardsStoreBeforeUpdate() {
|
||||
this.cards.clear();
|
||||
this.view.clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadCards(CardsView showCards, SortSetting sortSetting, BigCard bigCard, UUID gameId) {
|
||||
this.loadCards(showCards, sortSetting, bigCard, gameId, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue