Skip to content

Commit

Permalink
fix(Automatic Update Checker): Only check every 6 hours for a new update
Browse files Browse the repository at this point in the history
  • Loading branch information
SebiAi committed Jan 23, 2024
1 parent a5113e9 commit ef6a93f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ef6a93f

Please sign in to comment.