- Reverting previous commit, didn't work very well in practice.

This commit is contained in:
Agetian
2017-01-15 10:28:23 +00:00
parent d4f28dfcda
commit 126eb33e45

View File

@@ -292,19 +292,13 @@ public abstract class CardPanelContainer extends SkinnedPanel {
remove(CardPanel.getDragAnimationPanel());
setMouseDragPanel(null);
}
boolean selected = fromPanel != null && fromPanel.isSelected();
hoveredPanel = null;
fromPanel.dispose();
getCardPanels().remove(fromPanel);
remove(fromPanel);
invalidate();
repaint();
if (selected) {
FView.SINGLETON_INSTANCE.getFrame().repaint(); // necessary to get rid of lingering visual artifacts (e.g. unneeded targeting arrows)
}
FView.SINGLETON_INSTANCE.getFrame().repaint(); // necessary to get rid of lingering visual artifacts (e.g. unneeded targeting arrows)
}
public final void setCardPanels(final List<CardPanel> cardPanels) {