Revert to global progress indication (see #753)
This commit is contained in:
parent
c981d768b3
commit
b2a967cd0b
1 changed files with 2 additions and 3 deletions
|
@ -417,7 +417,6 @@ void BitcoinGUI::setNumBlocks(int count)
|
|||
{
|
||||
if(!clientModel)
|
||||
return;
|
||||
int initTotal = clientModel->getNumBlocksAtStartup();
|
||||
int total = clientModel->getNumBlocksOfPeers();
|
||||
QString tooltip;
|
||||
|
||||
|
@ -428,8 +427,8 @@ void BitcoinGUI::setNumBlocks(int count)
|
|||
progressBarLabel->setVisible(true);
|
||||
progressBarLabel->setText(tr("Synchronizing with network..."));
|
||||
progressBar->setVisible(true);
|
||||
progressBar->setMaximum(total - initTotal);
|
||||
progressBar->setValue(count - initTotal);
|
||||
progressBar->setMaximum(total);
|
||||
progressBar->setValue(count);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue