mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Change default check frequency to every ten hours.
This commit is contained in:
parent
fa0faee8ba
commit
4ad9b7d72d
@ -178,7 +178,7 @@ Application::Application(int &argc, char **argv) :
|
||||
QTimer::singleShot( 0, this, SLOT( slotCheckConnection() ));
|
||||
|
||||
// Update checks
|
||||
_updaterTimer.setInterval(cfg.updateCheckInterval()); // check every two hours
|
||||
_updaterTimer.setInterval(cfg.updateCheckInterval()); // check every couple of hours as defined in config
|
||||
|
||||
connect(&_updaterTimer, SIGNAL(timeout()), this, SLOT(slotStartUpdateDetector()));
|
||||
QTimer::singleShot( 3000, this, SLOT( slotStartUpdateDetector() ));
|
||||
|
||||
@ -389,7 +389,7 @@ bool ConfigFile::updateCheckInterval( const QString& connection ) const
|
||||
QSettings settings(configFile(), QSettings::IniFormat);
|
||||
settings.beginGroup( con );
|
||||
|
||||
quint64 defaultInterval = 1000*120*60;
|
||||
quint64 defaultInterval = 1000*60*60*10; // ten hours
|
||||
quint64 interval = settings.value( QLatin1String(updateCheckIntervalC), defaultInterval ).toULongLong();
|
||||
|
||||
quint64 minInterval = 1000*60*5;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user