From: gg Date: Tue, 13 Jan 2026 01:10:07 +0000 (-0500) Subject: show m_lastSyncStatusUpdate in label and debug log X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=04dac8fb2114ee0c137826a773918a1ec5b21793;p=gamesguru%2Ffeather.git show m_lastSyncStatusUpdate in label and debug log --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index ce2d67e2..9b933229 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -1002,9 +1002,14 @@ void MainWindow::onSyncStatus(quint64 height, quint64 target, bool daemonSync) { QString blocksStr = QLocale().toString(blocksBehind); this->setStatusText(tr("%1 sync: %2 blocks behind").arg(type, blocksStr)); } - m_statusLabelStatus->setToolTip(tr("Wallet Height: %1 | Network Tip: %2") + m_lastSyncStatusUpdate = QDateTime::currentDateTime(); + QString tooltip = tr("Wallet Height: %1 | Network Tip: %2\nLast updated: %3") .arg(QLocale().toString(height)) - .arg(QLocale().toString(target))); + .arg(QLocale().toString(target)) + .arg(m_lastSyncStatusUpdate.toString("HH:mm:ss")); + + qDebug() << "Setting Status Tooltip:" << tooltip; + m_statusLabelStatus->setToolTip(tooltip); } void MainWindow::onConnectionStatusChanged(int status) diff --git a/src/MainWindow.h b/src/MainWindow.h index 174287e7..ec78db9d 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -236,6 +236,8 @@ private: QPointer m_clearRecentlyOpenAction; QPointer m_updateNetworkInfoAction; + QDateTime m_lastSyncStatusUpdate; + // lower status bar QPushButton *m_statusUpdateAvailable; ClickableLabel *m_statusLabelBalance;