forked from External/mage
Fixed autoconnect(). Fixed not disabling button on autoconnect exception (Fixed Issue 124).
This commit is contained in:
parent
31585f73b1
commit
1e92d061e5
2 changed files with 9 additions and 2 deletions
|
|
@ -65,6 +65,13 @@ public class Connection {
|
|||
public String toString() {
|
||||
return text;
|
||||
}
|
||||
|
||||
public static ProxyType valueByText(String value) {
|
||||
for (ProxyType type : values()) {
|
||||
if (type.text.equals(value)) return type;
|
||||
}
|
||||
return NONE;
|
||||
}
|
||||
}
|
||||
|
||||
public String getHost() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue