GUI: fixed that deck validate from deck editor available in draft/sideboarding mode (#6854);

This commit is contained in:
Oleg Agafonov 2020-07-25 15:39:43 +04:00
parent 24aacaafe8
commit 857d888b76

View file

@ -182,6 +182,7 @@ public class DeckEditorPanel extends javax.swing.JPanel {
case LIMITED_BUILDING: case LIMITED_BUILDING:
this.btnAddLand.setVisible(true); this.btnAddLand.setVisible(true);
this.txtTimeRemaining.setVisible(true); this.txtTimeRemaining.setVisible(true);
this.btnLegality.setVisible(false); // legality check available only in free building mode
// Fall through to sideboarding (no break) // Fall through to sideboarding (no break)
case SIDEBOARDING: case SIDEBOARDING:
this.btnSubmit.setVisible(true); this.btnSubmit.setVisible(true);
@ -215,6 +216,7 @@ public class DeckEditorPanel extends javax.swing.JPanel {
this.btnSubmit.setVisible(false); this.btnSubmit.setVisible(false);
this.btnSubmitTimer.setVisible(false); this.btnSubmitTimer.setVisible(false);
this.btnAddLand.setVisible(true); this.btnAddLand.setVisible(true);
this.btnLegality.setVisible(true);
this.cardSelector.setVisible(true); this.cardSelector.setVisible(true);
this.cardSelector.loadCards(this.bigCard); this.cardSelector.loadCards(this.bigCard);
//this.cardTableSelector.loadCards(this.bigCard); //this.cardTableSelector.loadCards(this.bigCard);