mirror of https://github.com/noisymime/Arduino.git
Fixed bug with HTTPS proxy settings
This commit is contained in:
parent
02b7fa87eb
commit
a053088691
|
@ -737,9 +737,9 @@ public class Preferences {
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
Preferences.remove("proxy.http.port");
|
Preferences.remove("proxy.http.port");
|
||||||
}
|
}
|
||||||
Preferences.set("proxy.https.server", proxyHTTPServer.getText());
|
Preferences.set("proxy.https.server", proxyHTTPSServer.getText());
|
||||||
try {
|
try {
|
||||||
Preferences.set("proxy.https.port", Integer.valueOf(proxyHTTPPort.getText()).toString());
|
Preferences.set("proxy.https.port", Integer.valueOf(proxyHTTPSPort.getText()).toString());
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
Preferences.remove("proxy.https.port");
|
Preferences.remove("proxy.https.port");
|
||||||
}
|
}
|
||||||
|
@ -783,11 +783,11 @@ public class Preferences {
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
proxyHTTPPort.setText("");
|
proxyHTTPPort.setText("");
|
||||||
}
|
}
|
||||||
proxyHTTPServer.setText(Preferences.get("proxy.https.server"));
|
proxyHTTPSServer.setText(Preferences.get("proxy.https.server"));
|
||||||
try {
|
try {
|
||||||
proxyHTTPPort.setText(Integer.toString(Preferences.getInteger("proxy.https.port", 8443)));
|
proxyHTTPSPort.setText(Integer.toString(Preferences.getInteger("proxy.https.port", 8443)));
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
proxyHTTPPort.setText("");
|
proxyHTTPSPort.setText("");
|
||||||
}
|
}
|
||||||
proxyUser.setText(Preferences.get("proxy.user"));
|
proxyUser.setText(Preferences.get("proxy.user"));
|
||||||
proxyPassword.setText(Preferences.get("proxy.password"));
|
proxyPassword.setText(Preferences.get("proxy.password"));
|
||||||
|
|
Loading…
Reference in New Issue