Skip to content

Commit ef6a93f

Browse files
committed
fix(Automatic Update Checker): Only check every 6 hours for a new update
1 parent a5113e9 commit ef6a93f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void MainWindow::showEvent(QShowEvent *event)
164164
if (this->config->getBool(Config::Setting::UpdateChecker_AutoUpdateCheckEnabled_Bool))
165165
{
166166
QDateTime currentTime = QDateTime::currentDateTimeUtc();
167-
if (currentTime > this->config->getQDateTime(Config::Setting::UpdateChecker_LastAutoUpdateCheck_QDateTime).addSecs(10 * 60))
167+
if (currentTime > this->config->getQDateTime(Config::Setting::UpdateChecker_LastAutoUpdateCheck_QDateTime).addSecs(6 * 60 * 60))
168168
{
169169
// Set the currentTime
170170
this->config->setValue(Config::Setting::UpdateChecker_LastAutoUpdateCheck_QDateTime, currentTime);

0 commit comments

Comments
 (0)