From ef6a93ff975910657e9b4bea15f2323b6ee524cd Mon Sep 17 00:00:00 2001 From: SebiAi <41116921+SebiAi@users.noreply.github.com> Date: Tue, 23 Jan 2024 18:47:15 +0100 Subject: [PATCH] fix(Automatic Update Checker): Only check every 6 hours for a new update --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 9194bcf..70034ce 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -164,7 +164,7 @@ void MainWindow::showEvent(QShowEvent *event) if (this->config->getBool(Config::Setting::UpdateChecker_AutoUpdateCheckEnabled_Bool)) { QDateTime currentTime = QDateTime::currentDateTimeUtc(); - if (currentTime > this->config->getQDateTime(Config::Setting::UpdateChecker_LastAutoUpdateCheck_QDateTime).addSecs(10 * 60)) + if (currentTime > this->config->getQDateTime(Config::Setting::UpdateChecker_LastAutoUpdateCheck_QDateTime).addSecs(6 * 60 * 60)) { // Set the currentTime this->config->setValue(Config::Setting::UpdateChecker_LastAutoUpdateCheck_QDateTime, currentTime);