diff options
author | seth <getchoo@tuta.io> | 2023-07-10 16:31:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-10 16:31:43 -0400 |
commit | 640aaa8c23d714ce17bc8e78754af6219abc6466 (patch) | |
tree | c73ef0a82c33cd8fa1b4b8ba85b5dabf9ae4bf60 /launcher/minecraft/mod/Mod.cpp | |
parent | 99ba02afb6a7af1bc0800552338ab811b027eb9e (diff) | |
parent | 0c6362f28d1caec4d256c538d2874b226390ad85 (diff) | |
download | PrismLauncher-640aaa8c23d714ce17bc8e78754af6219abc6466.tar.gz PrismLauncher-640aaa8c23d714ce17bc8e78754af6219abc6466.tar.bz2 PrismLauncher-640aaa8c23d714ce17bc8e78754af6219abc6466.zip |
Merge pull request #1331 from TheKodeToad/hungry-trash
Fix updating trashing resources
Diffstat (limited to 'launcher/minecraft/mod/Mod.cpp')
-rw-r--r-- | launcher/minecraft/mod/Mod.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/minecraft/mod/Mod.cpp b/launcher/minecraft/mod/Mod.cpp index fa1a0253..880dacb1 100644 --- a/launcher/minecraft/mod/Mod.cpp +++ b/launcher/minecraft/mod/Mod.cpp @@ -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& |