Refactor: Rename onUiReadyHandler to onApplicationStartedHandler

This commit is contained in:
chimp1984 2020-09-30 22:16:32 -05:00
parent 516da22a09
commit aa7315b32d
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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());
} }
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////