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 {