mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
fix(ComponentUpdateTask): allow aborting
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
2338455076
commit
f007d90076
4 changed files with 31 additions and 6 deletions
|
|
@ -59,9 +59,7 @@ bool TaskStepWrapper::canAbort() const
|
|||
bool TaskStepWrapper::abort()
|
||||
{
|
||||
if (m_task && m_task->canAbort()) {
|
||||
auto status = m_task->abort();
|
||||
emitFailed("Aborted.");
|
||||
return status;
|
||||
return m_task->abort();
|
||||
}
|
||||
return Task::abort();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue