Fix: gui update from non-event thread
This commit is contained in:
parent
139bd7b1c9
commit
be16c333e2
|
@ -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"));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue