rename menu item where necessary to indicate wallet accounts are refreshed individually

This commit is contained in:
Craig Raw 2022-04-28 11:58:49 +02:00
parent eceaf40430
commit dd1976f173
2 changed files with 2 additions and 1 deletions

2
drongo

@ -1 +1 @@
Subproject commit 5b3712bfe0d9ba34fbdc931de0032a326804a8d8 Subproject commit 759ebb975cfe1c3636e2bdcb2c5a340a67be1c2b

View file

@ -2013,6 +2013,7 @@ public class AppController implements Initializable {
saveTransaction.setDisable(true); saveTransaction.setDisable(true);
lockWallet.setDisable(walletTabData.getWalletForm().lockedProperty().get()); lockWallet.setDisable(walletTabData.getWalletForm().lockedProperty().get());
exportWallet.setDisable(walletTabData.getWallet() == null || !walletTabData.getWallet().isValid() || walletTabData.getWalletForm().isLocked()); 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); showLoadingLog.setDisable(false);
showTxHex.setDisable(true); showTxHex.setDisable(true);
showPayNym.setDisable(exportWallet.isDisable() || !walletTabData.getWallet().hasPaymentCode()); showPayNym.setDisable(exportWallet.isDisable() || !walletTabData.getWallet().hasPaymentCode());