GH-3304 Temporarily ignore download failures for FTB packs
This is a temporary measure, to match FTB's own installer, to allow packs to download while FTB work on fixing the data from their API.
This commit is contained in:
parent
f1284ab96b
commit
05ffcf706b
@ -123,16 +123,20 @@ void PackInstallTask::install()
|
|||||||
auto dl = Net::Download::makeFile(file.url, path);
|
auto dl = Net::Download::makeFile(file.url, path);
|
||||||
jobPtr->addNetAction(dl);
|
jobPtr->addNetAction(dl);
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(jobPtr.get(), &NetJob::succeeded, this, [&]()
|
connect(jobPtr.get(), &NetJob::succeeded, this, [&]()
|
||||||
{
|
{
|
||||||
jobPtr.reset();
|
jobPtr.reset();
|
||||||
emitSucceeded();
|
emitSucceeded();
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(jobPtr.get(), &NetJob::failed, [&](QString reason)
|
connect(jobPtr.get(), &NetJob::failed, [&](QString reason)
|
||||||
{
|
{
|
||||||
jobPtr.reset();
|
jobPtr.reset();
|
||||||
emitFailed(reason);
|
|
||||||
|
// FIXME: Temporarily ignore file download failures (matching FTB's installer),
|
||||||
|
// while FTB's data is fucked.
|
||||||
|
qWarning() << "Failed to download files for modpack: " + reason;
|
||||||
|
emitSucceeded();
|
||||||
});
|
});
|
||||||
connect(jobPtr.get(), &NetJob::progress, [&](qint64 current, qint64 total)
|
connect(jobPtr.get(), &NetJob::progress, [&](qint64 current, qint64 total)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user