Browse Source

bring opened file window to foreground

terminal
Craig Raw 4 years ago
parent
commit
6f35d86890
  1. 8
      src/main/java/com/sparrowwallet/sparrow/AppController.java

8
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 {

Loading…
Cancel
Save