fix: make FML libraries cache eternal
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
5ac4e73697
commit
ddf1e1ccee
@ -63,11 +63,12 @@ void FMLLibrariesTask::executeTask()
|
|||||||
setStatus(tr("Downloading FML libraries..."));
|
setStatus(tr("Downloading FML libraries..."));
|
||||||
auto dljob = new NetJob("FML libraries", APPLICATION->network());
|
auto dljob = new NetJob("FML libraries", APPLICATION->network());
|
||||||
auto metacache = APPLICATION->metacache();
|
auto metacache = APPLICATION->metacache();
|
||||||
|
Net::Download::Options options = Net::Download::Option::MakeEternal;
|
||||||
for (auto &lib : fmlLibsToProcess)
|
for (auto &lib : fmlLibsToProcess)
|
||||||
{
|
{
|
||||||
auto entry = metacache->resolveEntry("fmllibs", lib.filename);
|
auto entry = metacache->resolveEntry("fmllibs", lib.filename);
|
||||||
QString urlString = BuildConfig.FMLLIBS_BASE_URL + lib.filename;
|
QString urlString = BuildConfig.FMLLIBS_BASE_URL + lib.filename;
|
||||||
dljob->addNetAction(Net::Download::makeCached(QUrl(urlString), entry));
|
dljob->addNetAction(Net::Download::makeCached(QUrl(urlString), entry, options));
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(dljob, &NetJob::succeeded, this, &FMLLibrariesTask::fmllibsFinished);
|
connect(dljob, &NetJob::succeeded, this, &FMLLibrariesTask::fmllibsFinished);
|
||||||
|
Loading…
Reference in New Issue
Block a user