From f8361fb31c5e6192fe8d591016798ef71e096655 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Wed, 16 Dec 2020 04:09:29 +0100 Subject: [PATCH] Statusbar: block remaining instead of absolute values --- src/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 9eb0f5c..d7c2a00 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -675,12 +675,12 @@ void MainWindow::onSynchronized() { } 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); } 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); this->updateNetStats(); }