forked from External/mage
Added simple preference setting to download the card images in the prefered language from magiccards.info.
This commit is contained in:
parent
84f25d72d3
commit
253bdd5d5d
4 changed files with 133 additions and 59 deletions
|
|
@ -97,7 +97,7 @@ public class Connection {
|
|||
public enum ProxyType {
|
||||
SOCKS("Socks"), HTTP("HTTP"), NONE("None");
|
||||
|
||||
private String text;
|
||||
private final String text;
|
||||
|
||||
ProxyType(String text) {
|
||||
this.text = text;
|
||||
|
|
@ -110,7 +110,9 @@ public class Connection {
|
|||
|
||||
public static ProxyType valueByText(String value) {
|
||||
for (ProxyType type : values()) {
|
||||
if (type.text.equals(value)) return type;
|
||||
if (type.text.equals(value)) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
return NONE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue