From: gg Date: Tue, 20 Jan 2026 09:25:59 +0000 (-0500) Subject: fix: last network update time saving properly X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=3258ccc2ce5e6d9001448ca8b79f9325789a645b;p=gamesguru%2Ffeather.git fix: last network update time saving properly --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index df817018..06fac103 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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(m_lastNetInfoUpdate.toSecsSinceEpoch()));