forked from External/mage
Fixed a bug that during sideboarding the display of the card the mouse hoovered on did stop to show in the big card panel.
This commit is contained in:
parent
62b92f1c5d
commit
4bd4ad3d8a
5 changed files with 53 additions and 36 deletions
|
|
@ -56,7 +56,7 @@ public class Cards extends javax.swing.JPanel {
|
|||
|
||||
private static final Logger logger = Logger.getLogger(Cards.class);
|
||||
|
||||
private Map<UUID, MageCard> cards = new LinkedHashMap<UUID, MageCard>();
|
||||
private final Map<UUID, MageCard> cards = new LinkedHashMap<>();
|
||||
private boolean dontDisplayTapped = false;
|
||||
private static final int GAP_X = 5;
|
||||
private String zone;
|
||||
|
|
@ -89,10 +89,10 @@ public class Cards extends javax.swing.JPanel {
|
|||
}
|
||||
|
||||
public void cleanUp() {
|
||||
ActionCallback actionCallback = Plugins.getInstance().getActionCallback();
|
||||
if (actionCallback instanceof MageActionCallback) {
|
||||
((MageActionCallback) actionCallback).setCardPreviewComponent(null);
|
||||
}
|
||||
// ActionCallback actionCallback = Plugins.getInstance().getActionCallback();
|
||||
// if (actionCallback instanceof MageActionCallback) {
|
||||
// ((MageActionCallback) actionCallback).setCardPreviewComponent(null);
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue