diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-03-04 10:37:52 +0000 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2023-03-04 10:37:56 +0000 |
commit | f583e617ec86a7538523a99ae008143a787e593b (patch) | |
tree | d3e66a7dab7cabfe5beb5d70e67c208d660fafd7 /launcher/modplatform/modrinth/ModrinthPackExportTask.h | |
parent | a2716f5cf6d72168ab5aa4415c046505e42404f1 (diff) | |
download | PrismLauncher-f583e617ec86a7538523a99ae008143a787e593b.tar.gz PrismLauncher-f583e617ec86a7538523a99ae008143a787e593b.tar.bz2 PrismLauncher-f583e617ec86a7538523a99ae008143a787e593b.zip |
Implement abort (possible broken?) and therefore make it work without crashing!
The shared pointer was going out of scope 🤦.
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthPackExportTask.h')
-rw-r--r-- | launcher/modplatform/modrinth/ModrinthPackExportTask.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackExportTask.h b/launcher/modplatform/modrinth/ModrinthPackExportTask.h index 4ac00522..ec87c1cd 100644 --- a/launcher/modplatform/modrinth/ModrinthPackExportTask.h +++ b/launcher/modplatform/modrinth/ModrinthPackExportTask.h @@ -34,6 +34,7 @@ class ModrinthPackExportTask : public Task { protected: void executeTask() override; + bool abort() override; private: static const QStringList PREFIXES; @@ -47,6 +48,7 @@ class ModrinthPackExportTask : public Task { ModrinthAPI api; QFileInfoList files; QMap<QString, QString> fileHashes; + Task::Ptr task; struct ResolvedFile { QString sha1, sha512, url; |