diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-17 16:55:26 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-17 16:55:26 +0300 |
commit | 64041a84a2da2d0ba07d6eb663ff7cbc3b351b7b (patch) | |
tree | 060c3cbf648820312418eeeaad76039babee51c7 /launcher/modplatform/modrinth | |
parent | 78ee63af388ec53871cd3505a64a5d2059dbb922 (diff) | |
download | PrismLauncher-64041a84a2da2d0ba07d6eb663ff7cbc3b351b7b.tar.gz PrismLauncher-64041a84a2da2d0ba07d6eb663ff7cbc3b351b7b.tar.bz2 PrismLauncher-64041a84a2da2d0ba07d6eb663ff7cbc3b351b7b.zip |
handle file removal in ExportToZipTask
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/modplatform/modrinth')
-rw-r--r-- | launcher/modplatform/modrinth/ModrinthPackExportTask.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp index 0470f831..7290f454 100644 --- a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp +++ b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp @@ -208,14 +208,10 @@ void ModrinthPackExportTask::buildZip() }); connect(zipTask.get(), &Task::succeeded, this, &ModrinthPackExportTask::emitSucceeded); - connect(zipTask.get(), &Task::aborted, this, [this]() { - QFile::remove(output); - emitAborted(); - }); + connect(zipTask.get(), &Task::aborted, this, &ModrinthPackExportTask::emitAborted); connect(zipTask.get(), &Task::failed, this, [this, progressStep](QString reason) { progressStep->state = TaskStepState::Failed; stepProgress(*progressStep); - QFile::remove(output); emitFailed(reason); }); connect(zipTask.get(), &Task::stepProgress, this, &ModrinthPackExportTask::propogateStepProgress); |