From 6f35d86890312dfa53fa0ebb6cf156514e8561d9 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 11 May 2021 12:58:11 +0200 Subject: [PATCH] bring opened file window to foreground --- .../java/com/sparrowwallet/sparrow/AppController.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppController.java b/src/main/java/com/sparrowwallet/sparrow/AppController.java index 3a45ba0c..351f639b 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppController.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppController.java @@ -1803,6 +1803,10 @@ public class AppController implements Initializable { @Subscribe public void requestWalletOpen(RequestWalletOpenEvent event) { if(tabs.getScene().getWindow().equals(event.getWindow())) { + if(event.getWindow() instanceof Stage) { + ((Stage)event.getWindow()).toFront(); + } + if(event.getFile() != null) { openWalletFile(event.getFile(), true); } else { @@ -1814,6 +1818,10 @@ public class AppController implements Initializable { @Subscribe public void requestTransactionOpen(RequestTransactionOpenEvent event) { if(tabs.getScene().getWindow().equals(event.getWindow())) { + if(event.getWindow() instanceof Stage) { + ((Stage)event.getWindow()).toFront(); + } + if(event.getFile() != null) { openTransactionFile(event.getFile()); } else {