Less destructive delete

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad
2026-01-06 17:54:16 +00:00
parent d625a28112
commit 398305eb66

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;
}