mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
bring opened file window to foreground
This commit is contained in:
parent
cbf32a36c6
commit
6f35d86890
1 changed files with 8 additions and 0 deletions
|
@ -1803,6 +1803,10 @@ public class AppController implements Initializable {
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void requestWalletOpen(RequestWalletOpenEvent event) {
|
public void requestWalletOpen(RequestWalletOpenEvent event) {
|
||||||
if(tabs.getScene().getWindow().equals(event.getWindow())) {
|
if(tabs.getScene().getWindow().equals(event.getWindow())) {
|
||||||
|
if(event.getWindow() instanceof Stage) {
|
||||||
|
((Stage)event.getWindow()).toFront();
|
||||||
|
}
|
||||||
|
|
||||||
if(event.getFile() != null) {
|
if(event.getFile() != null) {
|
||||||
openWalletFile(event.getFile(), true);
|
openWalletFile(event.getFile(), true);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1814,6 +1818,10 @@ public class AppController implements Initializable {
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void requestTransactionOpen(RequestTransactionOpenEvent event) {
|
public void requestTransactionOpen(RequestTransactionOpenEvent event) {
|
||||||
if(tabs.getScene().getWindow().equals(event.getWindow())) {
|
if(tabs.getScene().getWindow().equals(event.getWindow())) {
|
||||||
|
if(event.getWindow() instanceof Stage) {
|
||||||
|
((Stage)event.getWindow()).toFront();
|
||||||
|
}
|
||||||
|
|
||||||
if(event.getFile() != null) {
|
if(event.getFile() != null) {
|
||||||
openTransactionFile(event.getFile());
|
openTransactionFile(event.getFile());
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue