fix(ComponentUpdateTask): allow aborting

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-02-02 13:08:45 +05:00
parent 2338455076
commit f007d90076
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF
4 changed files with 31 additions and 6 deletions

View file

@ -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();
}