Cleanup formatting

This commit is contained in:
Manfred Karrer 2016-10-19 23:38:49 +02:00
parent 0f4ec7919e
commit 1c88ff0e9b
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46

View File

@ -18,7 +18,7 @@ public abstract class HttpClientProvider implements Serializable {
httpClient.setBaseUrl(baseUrl);
httpClient.setIgnoreSocks5Proxy(ignoreSocks5Proxy || !preferences.getUseTorForHttpRequests());
if (!ignoreSocks5Proxy) {
preferences.useTorForHttpRequestsProperty().addListener((observable, oldValue, newValue) -> {
httpClient.setIgnoreSocks5Proxy(!newValue);