* Fixed a problem that the enlarged card view could stay open after a game or draft were finished.

This commit is contained in:
LevelX2 2016-10-23 23:13:02 +02:00
parent bd0e288087
commit 070a0ca3fa
5 changed files with 2319 additions and 2305 deletions

View file

@ -336,7 +336,7 @@ public class DraftPanel extends javax.swing.JPanel {
if (view != null) {
loadCardsToPickedCardsArea(view.getPicks());
draftBooster.loadBooster(EMPTY_VIEW, bigCard);
Plugins.getInstance().getActionCallback().hideTooltipPopup();
Plugins.getInstance().getActionCallback().hideOpenComponents();
setMessage("Waiting for other players");
}
}

File diff suppressed because it is too large Load diff

View file

@ -419,11 +419,16 @@ public class MageActionCallback implements ActionCallback {
}
}
@Override
public void hideOpenComponents() {
this.hideTooltipPopup();
this.hideEnlargedCard();
}
/**
* Hides the text popup window
*
*/
@Override
public void hideTooltipPopup() {
this.tooltipCard = null;
if (tooltipPopup != null) {