Make trash hungry
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
67d473aab7
commit
0c6362f28d
7 changed files with 11 additions and 15 deletions
|
@ -126,7 +126,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());
|
||||
|
@ -139,7 +139,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&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue