mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-06-26 05:55:35 -04:00
Only confirm redownload of solar flux data if less than 1 day old
This commit is contained in:
parent
22e711342a
commit
d1c728b030
@ -1206,7 +1206,7 @@ void StarTrackerGUI::updateSolarFlux(bool all)
|
|||||||
{
|
{
|
||||||
QDate today = QDateTime::currentDateTimeUtc().date();
|
QDate today = QDateTime::currentDateTimeUtc().date();
|
||||||
QString solarFluxFile = getSolarFluxFilename();
|
QString solarFluxFile = getSolarFluxFilename();
|
||||||
if (m_dlm.confirmDownload(solarFluxFile))
|
if (m_dlm.confirmDownload(solarFluxFile, nullptr, 1))
|
||||||
{
|
{
|
||||||
QString urlString = QString("http://www.sws.bom.gov.au/Category/World Data Centre/Data Display and Download/Solar Radio/station/learmonth/SRD/%1/L%2.SRD")
|
QString urlString = QString("http://www.sws.bom.gov.au/Category/World Data Centre/Data Display and Download/Solar Radio/station/learmonth/SRD/%1/L%2.SRD")
|
||||||
.arg(today.year()).arg(today.toString("yyMMdd"));
|
.arg(today.year()).arg(today.toString("yyMMdd"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user