From e6a8c02745046755725247b9f31994dafc2a97a7 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 25 Jan 2021 15:49:41 +0800 Subject: [PATCH] Prolong checking interval for program updates --- src/gui/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index b194a1cad..1dc302d0a 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -104,6 +104,8 @@ #include "programupdater.h" #endif +using namespace std::chrono_literals; + namespace { #define SETTINGS_KEY(name) "GUI/" name @@ -1585,7 +1587,7 @@ void MainWindow::loadPreferences(const bool configureSession) if (!m_programUpdateTimer) { m_programUpdateTimer = new QTimer(this); - m_programUpdateTimer->setInterval(60 * 60 * 1000); + m_programUpdateTimer->setInterval(24h); m_programUpdateTimer->setSingleShot(true); connect(m_programUpdateTimer, &QTimer::timeout, this, [this]() { checkProgramUpdate(false); }); m_programUpdateTimer->start();