mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
cleanup the mod name checking
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -196,10 +196,7 @@ Task* ModFolderModel::createParseTask(Resource& resource)
|
||||
bool ModFolderModel::uninstallMod(const QString& filename, bool preserve_metadata)
|
||||
{
|
||||
for (auto mod : allMods()) {
|
||||
auto modfilename = mod->fileinfo().fileName();
|
||||
if (!mod->enabled() && modfilename.endsWith(".disabled"))
|
||||
modfilename.chop(9);
|
||||
if (modfilename == filename) {
|
||||
if (mod->getOriginalFileName() == filename) {
|
||||
auto index_dir = indexDir();
|
||||
mod->destroy(index_dir, preserve_metadata, false);
|
||||
|
||||
|
Reference in New Issue
Block a user