Fix: gui update from non-event thread

This commit is contained in:
0xboobface 2018-10-07 18:27:46 +02:00
parent 139bd7b1c9
commit be16c333e2
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ public class CtbrecApplication extends Application {
label.update(tokens);
} catch (InterruptedException | ExecutionException e) {
LOG.error("Couldn't retrieve account balance", e);
label.setText("Tokens: error");
Platform.runLater(() -> label.setText("Tokens: error"));
}
}
};