mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Map onApplicationLaunched on user thread
This commit is contained in:
parent
91f928c7a3
commit
57fe6be2cc
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,8 @@ public class BisqAppMain extends BisqExecutable {
|
||||||
protected void launchApplication() {
|
protected void launchApplication() {
|
||||||
BisqApp.setAppLaunchedHandler(application -> {
|
BisqApp.setAppLaunchedHandler(application -> {
|
||||||
BisqAppMain.this.application = (BisqApp) application;
|
BisqAppMain.this.application = (BisqApp) application;
|
||||||
onApplicationLaunched();
|
// Map to user thread!
|
||||||
|
UserThread.execute(this::onApplicationLaunched);
|
||||||
});
|
});
|
||||||
|
|
||||||
Application.launch(BisqApp.class);
|
Application.launch(BisqApp.class);
|
||||||
|
@ -108,6 +109,7 @@ public class BisqAppMain extends BisqExecutable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void startApplication() {
|
protected void startApplication() {
|
||||||
|
// We need to be in user thread! We mapped at launchApplication already...
|
||||||
application.startApplication();
|
application.startApplication();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue