更新 'src/GUI/UpdateChecker.cxx'
This commit is contained in:
parent
e4b4d93f7f
commit
4fa1253534
@ -84,18 +84,22 @@ UpdateChecker::UpdateChecker(QObject *parent) : QObject(parent)
|
||||
QSettings settings;
|
||||
QDate nextCheck = settings.value("next-update-check").toDate();
|
||||
|
||||
//zhongjin
|
||||
SG_LOG(SG_IO, SG_WARN, "UpdateChecker()" << nextCheck);
|
||||
|
||||
if (!nextCheck.isValid()) {
|
||||
// check tomorrow, so we don't nag immediately after insstallaion
|
||||
const QDate n = QDate::currentDate().addDays(1);
|
||||
settings.setValue("next-update-check", n);
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (nextCheck <= QDate::currentDate()) {
|
||||
|
||||
|
||||
//zhongjin
|
||||
SG_LOG(SG_IO, SG_WARN, "UpdateChecker()" << nextCheck);
|
||||
|
||||
// start a check
|
||||
auto http = globals->get_subsystem<FGHTTPClient>();
|
||||
if (!http) {
|
||||
|
Loading…
Reference in New Issue
Block a user