turns out reorganizeCards is not needed if the view doesn't change

This commit is contained in:
RickyRister 2025-01-04 01:53:16 -08:00
parent 57ef80d82d
commit 0ed883883a

View file

@ -288,7 +288,6 @@ void ZoneViewZone::addCardImpl(CardItem *card, int x, int /*y*/)
cards.append(card);
} else {
updateCardIds(ADD_CARD);
reorganizeCards();
return;
}
} else {
@ -327,7 +326,6 @@ void ZoneViewZone::removeCard(int position)
position -= cards.first()->getId();
if (position < 0 || position >= cards.size()) {
updateCardIds(REMOVE_CARD);
reorganizeCards();
return;
}
}