]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
show m_lastSyncStatusUpdate in label and debug log
authorgg <chown_tee@proton.me>
Tue, 13 Jan 2026 01:10:07 +0000 (20:10 -0500)
committergg <chown_tee@proton.me>
Tue, 13 Jan 2026 01:11:10 +0000 (20:11 -0500)
src/MainWindow.cpp
src/MainWindow.h

index ce2d67e25b1642c5d78f72f85a1b7c96e58aa713..9b9332298db5f696b80069e58b2648763384a278 100644 (file)
@@ -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)
index 174287e7285119253bb4e4227d369bee56b0e334..ec78db9d4239e02132add748807cc1773b169792 100644 (file)
@@ -236,6 +236,8 @@ private:
     QPointer<QAction> m_clearRecentlyOpenAction;
     QPointer<QAction> m_updateNetworkInfoAction;
 
+    QDateTime m_lastSyncStatusUpdate;
+
     // lower status bar
     QPushButton *m_statusUpdateAvailable;
     ClickableLabel *m_statusLabelBalance;