delay show password dialog until initial app window open has completed

This commit is contained in:
Craig Raw 2024-09-06 13:04:22 +02:00
parent e131f645f6
commit 31f287125f

View file

@ -89,7 +89,9 @@ public class SparrowDesktop extends Application {
AppController appController = AppServices.newAppWindow(stage); AppController appController = AppServices.newAppWindow(stage);
if(createNewWallet) { final boolean showNewWallet = createNewWallet;
javafx.application.Platform.runLater(() -> {
if(showNewWallet) {
appController.newWallet(null); appController.newWallet(null);
} }
@ -111,6 +113,7 @@ public class SparrowDesktop extends Application {
AppServices.openFileUriArgumentsAfterWalletLoading(stage); AppServices.openFileUriArgumentsAfterWalletLoading(stage);
AppServices.get().start(); AppServices.get().start();
});
} }
@Override @Override