fixed update error not shown correctly

This commit is contained in:
Jannik 2017-06-01 17:41:06 +02:00
parent 43ef370596
commit 888a2c5014
2 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -49,8 +49,9 @@ public class updater implements Runnable{
apiOutput = ina.readLine();
ina.close();
} catch (IOException e1) {
mainWindowController.showErrorMsg(mainWindowController.errorUpdateV, e1);
e1.printStackTrace();
Platform.runLater(() -> {
mainWindowController.showErrorMsg(mainWindowController.errorUpdateV, e1);
});
}
JsonObject object = Json.parse(apiOutput).asObject();