diff --git a/Mage/src/main/java/mage/choices/ChoiceImpl.java b/Mage/src/main/java/mage/choices/ChoiceImpl.java index 233093458b7..3656c70d2e5 100644 --- a/Mage/src/main/java/mage/choices/ChoiceImpl.java +++ b/Mage/src/main/java/mage/choices/ChoiceImpl.java @@ -40,8 +40,7 @@ import java.util.Set; */ public class ChoiceImpl implements Choice, Serializable { - private int ENABLE_SEARCH_FOR_ITEMS_COUNT = 5; // enable search for choices more then X items (for non standard choices) - + // TODO: add sorting to items protected boolean chosen; protected final boolean required; protected String choice; @@ -50,7 +49,7 @@ public class ChoiceImpl implements Choice, Serializable { protected Map keyChoices = new LinkedHashMap<>(); protected String message; protected String subMessage; - protected boolean searchEnabled = true; + protected boolean searchEnabled = true; // enable for all windows by default protected String searchText; public ChoiceImpl() { @@ -72,12 +71,6 @@ public class ChoiceImpl implements Choice, Serializable { this.keyChoices = choice.keyChoices; // list should never change for the same object so copy by reference } - private void autoSearchEnable(){ - if((this.choices != null) && (this.choices.size() >= ENABLE_SEARCH_FOR_ITEMS_COUNT)){ - this.setSearchEnabled(true); - } - } - @Override public boolean isChosen() { return chosen; @@ -114,7 +107,6 @@ public class ChoiceImpl implements Choice, Serializable { @Override public void setChoices(Set choices) { this.choices = choices; - autoSearchEnable(); } @Override @@ -148,7 +140,6 @@ public class ChoiceImpl implements Choice, Serializable { @Override public void setKeyChoices(Map choices) { keyChoices = choices; - autoSearchEnable(); } @Override