From dd1976f1731d0a084fa7e30ad2f566ddbb21b325 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 28 Apr 2022 11:58:49 +0200 Subject: [PATCH] rename menu item where necessary to indicate wallet accounts are refreshed individually --- drongo | 2 +- src/main/java/com/sparrowwallet/sparrow/AppController.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drongo b/drongo index 5b3712bf..759ebb97 160000 --- a/drongo +++ b/drongo @@ -1 +1 @@ -Subproject commit 5b3712bfe0d9ba34fbdc931de0032a326804a8d8 +Subproject commit 759ebb975cfe1c3636e2bdcb2c5a340a67be1c2b diff --git a/src/main/java/com/sparrowwallet/sparrow/AppController.java b/src/main/java/com/sparrowwallet/sparrow/AppController.java index 6d17a439..aa001d6c 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppController.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppController.java @@ -2013,6 +2013,7 @@ public class AppController implements Initializable { saveTransaction.setDisable(true); lockWallet.setDisable(walletTabData.getWalletForm().lockedProperty().get()); exportWallet.setDisable(walletTabData.getWallet() == null || !walletTabData.getWallet().isValid() || walletTabData.getWalletForm().isLocked()); + refreshWallet.setText(walletTabData.getWallet() == null || walletTabData.getWalletForm().getMasterWallet().getChildWallets().stream().allMatch(Wallet::isNested) ? "Refresh Wallet" : "Refresh Wallet Account"); showLoadingLog.setDisable(false); showTxHex.setDisable(true); showPayNym.setDisable(exportWallet.isDisable() || !walletTabData.getWallet().hasPaymentCode());