更新 'src/GUI/UpdateChecker.cxx'
This commit is contained in:
parent
0d17fe8358
commit
00836f1607
@ -94,6 +94,10 @@ UpdateChecker::UpdateChecker(QObject *parent) : QObject(parent)
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
const QDate n = QDate::currentDate().addDays(0);
|
||||
settings.setValue("next-update-check", n);
|
||||
|
||||
if (nextCheck <= QDate::currentDate()) {
|
||||
|
||||
|
||||
@ -111,6 +115,9 @@ UpdateChecker::UpdateChecker(QObject *parent) : QObject(parent)
|
||||
|
||||
// definitiely want to ensure HTTPS for this.
|
||||
std::string uri = "https://download.flightgear.org/builds/" + _majorMinorVersion + "/updates.xml";
|
||||
|
||||
SG_LOG(SG_IO, SG_WARN, "UpdateChecker() " << uri );
|
||||
|
||||
m_request = new UpdateXMLRequest(this, uri);
|
||||
http->makeRequest(m_request);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user