mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-09 12:29:44 +00:00
Statusbar: block remaining instead of absolute values
This commit is contained in:
parent
8c197f26ea
commit
f8361fb31c
1 changed files with 2 additions and 2 deletions
|
@ -675,12 +675,12 @@ void MainWindow::onSynchronized() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::onBlockchainSync(int height, int target) {
|
void MainWindow::onBlockchainSync(int height, int target) {
|
||||||
QString heightText = QString("Blockchain sync: %1/%2").arg(height).arg(target);
|
QString heightText = QString("Blockchain sync: %1 blocks remaining").arg(target - height);
|
||||||
m_statusLabelStatus->setText(heightText);
|
m_statusLabelStatus->setText(heightText);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::onRefreshSync(int height, int target) {
|
void MainWindow::onRefreshSync(int height, int target) {
|
||||||
QString heightText = QString("Wallet refresh: %1/%2").arg(height).arg(target);
|
QString heightText = QString("Wallet refresh: %1 blocks remaining").arg(target - height);
|
||||||
m_statusLabelStatus->setText(heightText);
|
m_statusLabelStatus->setText(heightText);
|
||||||
this->updateNetStats();
|
this->updateNetStats();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue