mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +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);
|
||||
}
|
||||
|
||||
public void startApplication(Runnable onUiReadyHandler) {
|
||||
public void startApplication(Runnable onApplicationStartedHandler) {
|
||||
try {
|
||||
MainView mainView = loadMainView(injector);
|
||||
mainView.setOnUiReadyHandler(onUiReadyHandler);
|
||||
mainView.setOnApplicationStartedHandler(onApplicationStartedHandler);
|
||||
scene = createAndConfigScene(mainView, injector);
|
||||
setupStage(scene);
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@ public class MainView extends InitializableView<StackPane, MainViewModel>
|
|||
private final static int SHOW_TOR_SETTINGS_DELAY_SEC = 90;
|
||||
private Label versionLabel;
|
||||
@Setter
|
||||
private Runnable onUiReadyHandler;
|
||||
private Runnable onApplicationStartedHandler;
|
||||
|
||||
public static StackPane getRootContainer() {
|
||||
return MainView.rootContainer;
|
||||
|
@ -405,7 +405,7 @@ public class MainView extends InitializableView<StackPane, MainViewModel>
|
|||
daoStateMonitoringService.addListener(this);
|
||||
|
||||
// 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