Delete staging on abort

Previously instances would get "stuck" in the folder

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2024-02-24 14:12:30 +00:00
parent 6a9f5540d3
commit 9574ebe480
No known key found for this signature in database
GPG Key ID: 5E39D70B4C93C38E

View File

@ -907,7 +907,11 @@ class InstanceStaging : public Task {
emitFailed(reason);
}
void childAborted() { emitAborted(); }
void childAborted()
{
m_parent->destroyStagingPath(m_stagingPath);
emitAborted();
}
private:
InstanceList* m_parent;