GH-1949 Allow modpacks.ch pack downloads to be aborted
This commit is contained in:
parent
d1a142f040
commit
db392b4994
2 changed files with 11 additions and 1 deletions
|
@ -16,6 +16,7 @@ public:
|
|||
explicit PackInstallTask(Modpack pack, QString version);
|
||||
virtual ~PackInstallTask(){}
|
||||
|
||||
bool canAbort() const override { return true; }
|
||||
bool abort() override;
|
||||
|
||||
protected:
|
||||
|
@ -30,6 +31,8 @@ private:
|
|||
void install();
|
||||
|
||||
private:
|
||||
bool abortable = false;
|
||||
|
||||
NetJobPtr jobPtr;
|
||||
QByteArray response;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue