mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-18 18:51:26 +00:00
moved isLoadingHttpResponse.set(true) into void loadHttpResponse
This commit is contained in:
@@ -148,7 +148,6 @@ public class ErrorController implements FxController {
|
||||
@FXML
|
||||
public void lookUpSolution() {
|
||||
lookupDatabaseUserPermission.set(true);
|
||||
isLoadingHttpResponse.set(true);
|
||||
HttpClient httpClient = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
|
||||
HttpRequest httpRequest = HttpRequest.newBuilder()//
|
||||
.uri(URI.create(ERROR_CODES_URL))//
|
||||
@@ -159,6 +158,7 @@ public class ErrorController implements FxController {
|
||||
}
|
||||
|
||||
private void loadHttpResponse(HttpResponse<InputStream> response) {
|
||||
isLoadingHttpResponse.set(true);
|
||||
if (response.statusCode() != 200) {
|
||||
LOG.error("Status code {} when trying to load {} ", response.statusCode(), response.uri());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user