show '0 confirmation(s)' until confirmed

This commit is contained in:
woodser 2024-04-22 05:11:19 -04:00
parent 6455171dea
commit 2e672260d3

View file

@ -539,7 +539,7 @@ public class GUIUtil {
tooltip.setText(Res.get("confidence.confirmed", tx.getNumConfirmations())); tooltip.setText(Res.get("confidence.confirmed", tx.getNumConfirmations()));
txConfidenceIndicator.setProgress((double) tx.getNumConfirmations() / (double) XmrWalletService.NUM_BLOCKS_UNLOCK); txConfidenceIndicator.setProgress((double) tx.getNumConfirmations() / (double) XmrWalletService.NUM_BLOCKS_UNLOCK);
} else { } else {
tooltip.setText(Res.get("confidence.seen", 0)); tooltip.setText(Res.get("confidence.confirmed", 0));
txConfidenceIndicator.setProgress(-1); txConfidenceIndicator.setProgress(-1);
} }
} }