MCPcopy Create free account
hub / github.com/ckaiser/Lightscreen / checkForUpdates

Method checkForUpdates

lightscreenwindow.cpp:159–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void LightscreenWindow::checkForUpdates()
160{
161 if (settings()->value("options/disableUpdater", false).toBool()) {
162 return;
163 }
164
165 if (settings()->value("lastUpdateCheck").toInt() + 7
166 > QDate::currentDate().dayOfYear()) {
167 return; // If 7 days have not passed since the last update check.
168 }
169
170 mUpdater = new Updater(this);
171
172 connect(mUpdater, &Updater::done, this, &LightscreenWindow::updaterDone);
173 mUpdater->check();
174}
175
176void LightscreenWindow::cleanup(const Screenshot::Options &options)
177{

Callers

nothing calls this directly

Calls 1

checkMethod · 0.80

Tested by

no test coverage detected