Less destructive delete

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
(cherry picked from commit 398305eb66)
This commit is contained in:
TheKodeToad 2026-01-06 17:54:16 +00:00 committed by github-actions[bot]
parent 6ef89db08e
commit e3b3ef65ee

View file

@ -35,7 +35,7 @@ class ShaderPackIndexMigrateTask : public Task {
return;
}
if (!m_indexDir.removeRecursively()) {
if (FS::deletePath(m_indexDir.absolutePath())) {
emitFailed(tr("Failed to remove old .index dir"));
return;
}