void UpdaterScheduler::slotTimerFired() { ConfigFile cfg; // re-set the check interval if it changed in the config file meanwhile auto checkInterval = cfg.updateCheckInterval(); if (checkInterval != _updateCheckTimer.interval()) { _updateCheckTimer.setInterval(checkInterval); qCInfo(lcUpdater) << "Setting new update check interval " << checkInterval; } // consider the skipUpdateCheck flag in the config. if (cfg.skipUpdateCheck()) { qCInfo(lcUpdater) << "Skipping update check because of config file"; return; } Updater *updater = Updater::instance(); if (updater) { updater->backgroundCheckForUpdate(); } }
void Application::slotStartUpdateDetector() { Updater *updater = Updater::instance(); updater->backgroundCheckForUpdate(); }