Map onApplicationLaunched on user thread

This commit is contained in:
Manfred Karrer 2018-04-17 22:25:23 -05:00
parent 91f928c7a3
commit 57fe6be2cc
No known key found for this signature in database
GPG key ID: 401250966A6B2C46

View file

@ -64,7 +64,8 @@ public class BisqAppMain extends BisqExecutable {
protected void launchApplication() {
BisqApp.setAppLaunchedHandler(application -> {
BisqAppMain.this.application = (BisqApp) application;
onApplicationLaunched();
// Map to user thread!
UserThread.execute(this::onApplicationLaunched);
});
Application.launch(BisqApp.class);
@ -108,6 +109,7 @@ public class BisqAppMain extends BisqExecutable {
@Override
protected void startApplication() {
// We need to be in user thread! We mapped at launchApplication already...
application.startApplication();
}
}