Skip to content

Loading…

Show percentage progress on syncing progress bar #2101

Closed
wants to merge 1 commit into from

1 participant

@ayanes

It kind of helps to see directly the % complete without pointing the right bottom corner

@ayanes ayanes closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 13, 2012
  1. Show percentage progress on syncing progress bar

    Adrian Yanes committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/qt/bitcoingui.cpp
View
2 src/qt/bitcoingui.cpp
@@ -534,7 +534,7 @@ void BitcoinGUI::setNumBlocks(int count, int nTotalBlocks)
progressBarLabel->setText(importText);
progressBarLabel->setVisible(true);
- progressBar->setFormat(tr("~%n block(s) remaining", "", nRemainingBlocks));
+ progressBar->setFormat(tr("~%1 block(s) remaining (%2% done)").arg(nRemainingBlocks).arg(nPercentageDone, 0, 'f', 2));
progressBar->setMaximum(nTotalBlocks);
progressBar->setValue(count);
progressBar->setVisible(true);
Something went wrong with that request. Please try again.