diff options
author | Petr Mrázek <peterix@users.noreply.github.com> | 2021-07-06 22:01:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-06 22:01:33 +0200 |
commit | df1d3dbae2d11557e5b4d2ab9c5c1333a8af799e (patch) | |
tree | 5ce39c5d8689a32c04340c3e9af5a18ae8c350d0 /api/logic/modplatform/technic/SingleZipPackInstallTask.h | |
parent | 417994735a4823782f0f2304695347a13eed9a1d (diff) | |
parent | 220971fadd8cc2def071818c17cda14bad0f6f45 (diff) | |
download | PrismLauncher-df1d3dbae2d11557e5b4d2ab9c5c1333a8af799e.tar.gz PrismLauncher-df1d3dbae2d11557e5b4d2ab9c5c1333a8af799e.tar.bz2 PrismLauncher-df1d3dbae2d11557e5b4d2ab9c5c1333a8af799e.zip |
Merge pull request #3925 from jamierocks/fix-1949
GH-1949 Allow modpack downloads to be aborted
Diffstat (limited to 'api/logic/modplatform/technic/SingleZipPackInstallTask.h')
-rw-r--r-- | api/logic/modplatform/technic/SingleZipPackInstallTask.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api/logic/modplatform/technic/SingleZipPackInstallTask.h b/api/logic/modplatform/technic/SingleZipPackInstallTask.h index c56b9e46..ec2ff605 100644 --- a/api/logic/modplatform/technic/SingleZipPackInstallTask.h +++ b/api/logic/modplatform/technic/SingleZipPackInstallTask.h @@ -36,6 +36,9 @@ class MULTIMC_LOGIC_EXPORT SingleZipPackInstallTask : public InstanceTask public: SingleZipPackInstallTask(const QUrl &sourceUrl, const QString &minecraftVersion); + bool canAbort() const override { return true; } + bool abort() override; + protected: void executeTask() override; @@ -48,6 +51,8 @@ private slots: void extractAborted(); private: + bool m_abortable = false; + QUrl m_sourceUrl; QString m_minecraftVersion; QString m_archivePath; |