Fixed "preload bar stuck on 4-color case" in constructed submenu.

This commit is contained in:
Doublestrike
2012-02-13 09:08:39 +00:00
parent a86c9553a9
commit 5eddf37eb6

View File

@@ -498,11 +498,19 @@ public class ControlConstructed {
// Check color-based deck selection for appropriate length // Check color-based deck selection for appropriate length
if (currentHumanSelection.getName().equals("lstColorsHuman")) { if (currentHumanSelection.getName().equals("lstColorsHuman")) {
if (!checkValidityOfHumanSelectedColors(humanSelected)) { return; } if (!checkValidityOfHumanSelectedColors(humanSelected)) {
view.getBarProgress().setVisible(false);
view.getBtnStart().setVisible(true);
return;
}
} }
if (currentAISelection.getName().equals("lstColorsAI")) { if (currentAISelection.getName().equals("lstColorsAI")) {
if (!checkValidityOfAISelectedColors(aiSelected)) { return; } if (!checkValidityOfAISelectedColors(aiSelected)) {
view.getBarProgress().setVisible(false);
view.getBtnStart().setVisible(true);
return;
}
} }
generateAIDecks(aiSelected); generateAIDecks(aiSelected);