Imprve text and actiavte chainSyncIndicator when not synced

This commit is contained in:
Manfred Karrer 2018-12-02 01:18:58 +01:00
parent d396ab2c32
commit 5b3d521e36
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46
2 changed files with 4 additions and 4 deletions

View File

@ -1660,8 +1660,8 @@ dao.wallet.send.send=Send BSQ funds
dao.wallet.send.sendBtc=Send BTC funds
dao.wallet.send.sendFunds.headline=Confirm withdrawal request
dao.wallet.send.sendFunds.details=Sending: {0}\nTo receiving address: {1}.\nRequired transaction fee is: {2} ({3} satoshis/byte)\nTransaction size: {4} Kb\n\nThe recipient will receive: {5}\n\nAre you sure you want to withdraw that amount?
dao.wallet.chainHeightSynced=Synchronized up to block:{0} (latest block: {1})
dao.wallet.chainHeightSyncing=Synchronizing block: {0} (latest block: {1})
dao.wallet.chainHeightSynced=Latest verified block: {0}
dao.wallet.chainHeightSyncing=Awaiting blocks... Verified {0} blocks out of {1}
dao.wallet.tx.type=Type
# suppress inspection "UnusedProperty"

View File

@ -239,8 +239,8 @@ public class BsqTxView extends ActivatableView<GridPane, Void> implements BsqBal
final boolean synced = bsqWalletChainHeight == bsqBlockChainHeight;
chainSyncIndicator.setVisible(!synced);
chainSyncIndicator.setManaged(!synced);
if (bsqBlockChainHeight > 0)
chainSyncIndicator.setProgress((double) bsqBlockChainHeight / (double) bsqWalletChainHeight);
if (bsqBlockChainHeight != bsqWalletChainHeight)
chainSyncIndicator.setProgress(-1);
if (synced) {
chainHeightLabel.setText(Res.get("dao.wallet.chainHeightSynced",