Move setAbortable(true)

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2023-05-13 18:28:45 +01:00
parent e1b6020b76
commit 129e959a3b

View File

@ -150,13 +150,12 @@ void ModrinthPackExportTask::collectHashes()
pendingHashes[relative] = sha512.result().toHex(); pendingHashes[relative] = sha512.result().toHex();
} }
setAbortable(true);
makeApiRequest(); makeApiRequest();
} }
void ModrinthPackExportTask::makeApiRequest() void ModrinthPackExportTask::makeApiRequest()
{ {
setAbortable(true);
if (pendingHashes.isEmpty()) if (pendingHashes.isEmpty())
buildZip(); buildZip();
else { else {