From a8591bfff64dd56e7f5e0dd46c061305124455e0 Mon Sep 17 00:00:00 2001 From: gg Date: Sun, 18 Jan 2026 00:40:50 -0500 Subject: [PATCH] restore useful paused status text format --- src/MainWindow.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index dfcec1a5..8d40e60d 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -821,7 +821,7 @@ void MainWindow::onBalanceUpdated(quint64 balance, quint64 spendable) { copyableVal = amount; if (displaySetting == Config::spendablePlusUnconfirmed && balance > spendable) { - balance_str += QString(" (+%1 XMR unconfirmed)").arg(WalletManager::displayAmount(balance - spendable, false, decimals)); + balance_str += QString(" (+%1 XMR unconfirmed)").arg(WalletManager::displayAmount(balance - spendable, false, decimals)); } } @@ -1080,7 +1080,6 @@ void MainWindow::onConnectionStatusChanged(int status) QString statusStr = this->getPausedStatusText(); m_statusBtnConnectionStatusIndicator->setIcon(icon); - m_statusBtnConnectionStatusIndicator->setToolTip(tr("Sync Paused")); this->setStatusText(statusStr); // Hide the "Net Stats" (D: 0.0 B) label since we aren't downloading @@ -1950,6 +1949,17 @@ void MainWindow::onWalletPassphraseNeeded(bool on_device) { } QString MainWindow::getPausedStatusText() { + if (!m_wallet) return tr("Sync Paused"); + + quint64 walletHeight = m_wallet->blockChainHeight(); + quint64 targetHeight = m_wallet->daemonBlockChainTargetHeight(); + + if (walletHeight > 0 && targetHeight > 0) { + quint64 blocksBehind = Utils::blocksBehind(walletHeight, targetHeight); + if (blocksBehind > 0) { + return tr("[SYNC PAUSED] - %1 blocks behind").arg(QLocale().toString(blocksBehind)); + } + } return tr("[SYNC PAUSED]"); } -- 2.52.0