Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 830 Lines • ▼ Show 20 Lines | void BitcoinGUI::setNumBlocks(int count, const QDateTime &blockDate, | ||||
// Prevent orphan statusbar messages (e.g. hover Quit in main menu, wait | // Prevent orphan statusbar messages (e.g. hover Quit in main menu, wait | ||||
// until chain-sync starts -> garbled text) | // until chain-sync starts -> garbled text) | ||||
statusBar()->clearMessage(); | statusBar()->clearMessage(); | ||||
// Acquire current block source | // Acquire current block source | ||||
enum BlockSource blockSource = clientModel->getBlockSource(); | enum BlockSource blockSource = clientModel->getBlockSource(); | ||||
switch (blockSource) { | switch (blockSource) { | ||||
case BLOCK_SOURCE_NETWORK: | case BlockSource::NETWORK: | ||||
if (header) { | if (header) { | ||||
updateHeadersSyncProgressLabel(); | updateHeadersSyncProgressLabel(); | ||||
return; | return; | ||||
} | } | ||||
progressBarLabel->setText(tr("Synchronizing with network...")); | progressBarLabel->setText(tr("Synchronizing with network...")); | ||||
updateHeadersSyncProgressLabel(); | updateHeadersSyncProgressLabel(); | ||||
break; | break; | ||||
case BLOCK_SOURCE_DISK: | case BlockSource::DISK: | ||||
if (header) { | if (header) { | ||||
progressBarLabel->setText(tr("Indexing blocks on disk...")); | progressBarLabel->setText(tr("Indexing blocks on disk...")); | ||||
} else { | } else { | ||||
progressBarLabel->setText(tr("Processing blocks on disk...")); | progressBarLabel->setText(tr("Processing blocks on disk...")); | ||||
} | } | ||||
break; | break; | ||||
case BLOCK_SOURCE_REINDEX: | case BlockSource::REINDEX: | ||||
progressBarLabel->setText(tr("Reindexing blocks on disk...")); | progressBarLabel->setText(tr("Reindexing blocks on disk...")); | ||||
break; | break; | ||||
case BLOCK_SOURCE_NONE: | case BlockSource::NONE: | ||||
if (header) { | if (header) { | ||||
return; | return; | ||||
} | } | ||||
progressBarLabel->setText(tr("Connecting to peers...")); | progressBarLabel->setText(tr("Connecting to peers...")); | ||||
break; | break; | ||||
} | } | ||||
QString tooltip; | QString tooltip; | ||||
▲ Show 20 Lines • Show All 469 Lines • Show Last 20 Lines |