mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Refactor: Rename onUiReadyHandler to onApplicationStartedHandler
This commit is contained in:
parent
516da22a09
commit
aa7315b32d
2 changed files with 4 additions and 4 deletions
|
@ -129,10 +129,10 @@ public class BisqApp extends Application implements UncaughtExceptionHandler {
|
||||||
appLaunchedHandler.accept(this);
|
appLaunchedHandler.accept(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void startApplication(Runnable onUiReadyHandler) {
|
public void startApplication(Runnable onApplicationStartedHandler) {
|
||||||
try {
|
try {
|
||||||
MainView mainView = loadMainView(injector);
|
MainView mainView = loadMainView(injector);
|
||||||
mainView.setOnUiReadyHandler(onUiReadyHandler);
|
mainView.setOnApplicationStartedHandler(onApplicationStartedHandler);
|
||||||
scene = createAndConfigScene(mainView, injector);
|
scene = createAndConfigScene(mainView, injector);
|
||||||
setupStage(scene);
|
setupStage(scene);
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,7 @@ public class MainView extends InitializableView<StackPane, MainViewModel>
|
||||||
private final static int SHOW_TOR_SETTINGS_DELAY_SEC = 90;
|
private final static int SHOW_TOR_SETTINGS_DELAY_SEC = 90;
|
||||||
private Label versionLabel;
|
private Label versionLabel;
|
||||||
@Setter
|
@Setter
|
||||||
private Runnable onUiReadyHandler;
|
private Runnable onApplicationStartedHandler;
|
||||||
|
|
||||||
public static StackPane getRootContainer() {
|
public static StackPane getRootContainer() {
|
||||||
return MainView.rootContainer;
|
return MainView.rootContainer;
|
||||||
|
@ -405,7 +405,7 @@ public class MainView extends InitializableView<StackPane, MainViewModel>
|
||||||
daoStateMonitoringService.addListener(this);
|
daoStateMonitoringService.addListener(this);
|
||||||
|
|
||||||
// Delay a bit to give time for rendering the splash screen
|
// Delay a bit to give time for rendering the splash screen
|
||||||
UserThread.execute(() -> onUiReadyHandler.run());
|
UserThread.execute(() -> onApplicationStartedHandler.run());
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Reference in a new issue