diff options
Diffstat (limited to 'logic/forge')
-rw-r--r-- | logic/forge/ForgeInstaller.cpp | 6 | ||||
-rw-r--r-- | logic/forge/ForgeInstaller.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/logic/forge/ForgeInstaller.cpp b/logic/forge/ForgeInstaller.cpp index ee68069b..47e0f1e9 100644 --- a/logic/forge/ForgeInstaller.cpp +++ b/logic/forge/ForgeInstaller.cpp @@ -384,8 +384,8 @@ protected: { setProgress(100 * current / qMax((qint64)1, total)); }); connect(fjob, &NetJob::status, [this](const QString & msg) { setStatus(msg); }); - connect(fjob, &NetJob::failed, [this]() - { emitFailed(tr("Failure to download forge")); }); + connect(fjob, &NetJob::failed, [this](QString reason) + { emitFailed(tr("Failure to download forge:\n%1").arg(reason)); }); connect(fjob, &NetJob::succeeded, installFunction); fjob->start(); } @@ -428,7 +428,7 @@ private: BaseVersionPtr m_version; }; -ProgressProvider *ForgeInstaller::createInstallTask(OneSixInstance *instance, +Task *ForgeInstaller::createInstallTask(OneSixInstance *instance, BaseVersionPtr version, QObject *parent) { if (!version) diff --git a/logic/forge/ForgeInstaller.h b/logic/forge/ForgeInstaller.h index 1b31d39f..ae30177f 100644 --- a/logic/forge/ForgeInstaller.h +++ b/logic/forge/ForgeInstaller.h @@ -30,7 +30,7 @@ class ForgeInstaller : public BaseInstaller public: ForgeInstaller(); virtual ~ForgeInstaller(){} - virtual ProgressProvider *createInstallTask(OneSixInstance *instance, BaseVersionPtr version, QObject *parent) override; + virtual Task *createInstallTask(OneSixInstance *instance, BaseVersionPtr version, QObject *parent) override; virtual QString id() const override { return "net.minecraftforge"; } protected: |