Merge pull request #1331 from TheKodeToad/hungry-trash

Fix updating trashing resources
This commit is contained in:
seth
2023-07-10 16:31:43 -04:00
committed by Sefa Eyeoglu
parent 6cd259becd
commit 6f86e8b66e
7 changed files with 11 additions and 15 deletions

View File

@ -121,7 +121,7 @@ bool Mod::applyFilter(QRegularExpression filter) const
return Resource::applyFilter(filter);
}
auto Mod::destroy(QDir& index_dir, bool preserve_metadata) -> bool
auto Mod::destroy(QDir& index_dir, bool preserve_metadata, bool attempt_trash) -> bool
{
if (!preserve_metadata) {
qDebug() << QString("Destroying metadata for '%1' on purpose").arg(name());
@ -134,7 +134,7 @@ auto Mod::destroy(QDir& index_dir, bool preserve_metadata) -> bool
}
}
return Resource::destroy();
return Resource::destroy(attempt_trash);
}
auto Mod::details() const -> const ModDetails&