mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 13:28:50 +03:00
Prolong checking interval for program updates
This commit is contained in:
parent
88d695f7af
commit
e6a8c02745
1 changed files with 3 additions and 1 deletions
|
@ -104,6 +104,8 @@
|
||||||
#include "programupdater.h"
|
#include "programupdater.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
using namespace std::chrono_literals;
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
#define SETTINGS_KEY(name) "GUI/" name
|
#define SETTINGS_KEY(name) "GUI/" name
|
||||||
|
@ -1585,7 +1587,7 @@ void MainWindow::loadPreferences(const bool configureSession)
|
||||||
if (!m_programUpdateTimer)
|
if (!m_programUpdateTimer)
|
||||||
{
|
{
|
||||||
m_programUpdateTimer = new QTimer(this);
|
m_programUpdateTimer = new QTimer(this);
|
||||||
m_programUpdateTimer->setInterval(60 * 60 * 1000);
|
m_programUpdateTimer->setInterval(24h);
|
||||||
m_programUpdateTimer->setSingleShot(true);
|
m_programUpdateTimer->setSingleShot(true);
|
||||||
connect(m_programUpdateTimer, &QTimer::timeout, this, [this]() { checkProgramUpdate(false); });
|
connect(m_programUpdateTimer, &QTimer::timeout, this, [this]() { checkProgramUpdate(false); });
|
||||||
m_programUpdateTimer->start();
|
m_programUpdateTimer->start();
|
||||||
|
|
Loading…
Reference in a new issue