mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- A little cleanup in PlayArea.
This commit is contained in:
@@ -642,13 +642,13 @@ public class PlayArea extends CardPanelContainer implements CardPanelMouseListen
|
||||
newPanels.add(placeholder);
|
||||
}
|
||||
|
||||
boolean needLayoutRefresh = !newPanels.isEmpty();
|
||||
boolean needLayoutRefresh = !newPanels.isEmpty() || !toDelete.isEmpty();
|
||||
for (final CardView card : modelCopy) {
|
||||
if (doUpdateCard(card, true)) {
|
||||
needLayoutRefresh = true;
|
||||
}
|
||||
}
|
||||
if (needLayoutRefresh || !toDelete.isEmpty()) {
|
||||
if (needLayoutRefresh) {
|
||||
doLayout();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user