]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
fix: last network update time saving properly
authorgg <chown_tee@proton.me>
Tue, 20 Jan 2026 09:25:59 +0000 (04:25 -0500)
committergg <chown_tee@proton.me>
Tue, 20 Jan 2026 09:25:59 +0000 (04:25 -0500)
src/MainWindow.cpp

index df8170188d7dc7be3592cc3bcc771ed5bb229025..06fac103ef4784836ce71a8742903b1db9938b4f 100644 (file)
@@ -1035,7 +1035,7 @@ void MainWindow::onSyncStatus(quint64 height, quint64 target, bool daemonSync) {
     m_lastNetInfoUpdate = QDateTime::currentDateTime();
 
     // Persist to global config (throttled to syncInterval)
-    static QDateTime lastConfigSave = QDateTime::currentDateTime();
+    static QDateTime lastConfigSave = QDateTime::fromMSecsSinceEpoch(0);
     int interval = constants::defaultRefreshInterval;
     if (lastConfigSave.secsTo(QDateTime::currentDateTime()) > interval) {
         conf()->set(Config::lastNetInfoUpdate, static_cast<qulonglong>(m_lastNetInfoUpdate.toSecsSinceEpoch()));