Fix abort?
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
f583e617ec
commit
87384182a1
2 changed files with 8 additions and 3 deletions
|
@ -54,8 +54,12 @@ void ModrinthPackExportTask::executeTask()
|
|||
}
|
||||
|
||||
bool ModrinthPackExportTask::abort() {
|
||||
if (!task.isNull())
|
||||
return task->abort();
|
||||
if (!task.isNull() && task->abort()) {
|
||||
task = nullptr;
|
||||
emitFailed(tr("Aborted"));
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue