mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
NOISSUE fix build and change how NetJob is used
Feed it network upfront...
This commit is contained in:
parent
9cc168c526
commit
9579231ccc
31 changed files with 103 additions and 113 deletions
|
|
@ -29,6 +29,8 @@
|
|||
#include "net/ChecksumValidator.h"
|
||||
#include "BuildConfig.h"
|
||||
|
||||
#include "Application.h"
|
||||
|
||||
namespace {
|
||||
QSet<QString> collectPathsFromDir(QString dirPath)
|
||||
{
|
||||
|
|
@ -318,7 +320,7 @@ QString AssetObject::getRelPath()
|
|||
|
||||
NetJob::Ptr AssetsIndex::getDownloadJob()
|
||||
{
|
||||
auto job = new NetJob(QObject::tr("Assets for %1").arg(id));
|
||||
auto job = new NetJob(QObject::tr("Assets for %1").arg(id), APPLICATION->network());
|
||||
for (auto &object : objects.values())
|
||||
{
|
||||
auto dl = object.getDownloadAction();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue