From bcada0eeed78df5b09f317780ef38e7ea98c381f Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Tue, 10 Dec 2024 13:37:36 +0000 Subject: [PATCH] Correctly block mod enable button for mods with missing dependencies --- launcher/modManager/cmodlistview_moc.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/launcher/modManager/cmodlistview_moc.cpp b/launcher/modManager/cmodlistview_moc.cpp index 4ecd9060a..c2f1a4d7c 100644 --- a/launcher/modManager/cmodlistview_moc.cpp +++ b/launcher/modManager/cmodlistview_moc.cpp @@ -546,9 +546,6 @@ QStringList CModListView::getModsToInstall(QString mod) candidates.pop_back(); processed.push_back(potentialToInstall); - if (modStateModel->isModExists(potentialToInstall) && modStateModel->isModInstalled(potentialToInstall)) - continue; - if (modStateModel->isSubmod(potentialToInstall)) { QString topParent = modStateModel->getTopParent(potentialToInstall); @@ -562,7 +559,8 @@ QStringList CModListView::getModsToInstall(QString mod) potentialToInstall = modStateModel->getTopParent(potentialToInstall); } - result.push_back(potentialToInstall); + if (modStateModel->isModExists(potentialToInstall) && !modStateModel->isModInstalled(potentialToInstall)) + result.push_back(potentialToInstall); if (modStateModel->isModExists(potentialToInstall)) {