mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Ignore hidden mods when checking mod dependencies
This commit is contained in:
@@ -38,6 +38,9 @@ bool CModEntry::isEnabled() const
|
||||
if(!isInstalled())
|
||||
return false;
|
||||
|
||||
if (!isVisible())
|
||||
return false;
|
||||
|
||||
return modSettings["active"].toBool();
|
||||
}
|
||||
|
||||
|
@@ -521,7 +521,7 @@ QStringList CModListView::findDependentMods(QString mod, bool excludeDisabled)
|
||||
{
|
||||
auto current = modModel->getMod(modName);
|
||||
|
||||
if(!current.isInstalled())
|
||||
if(!current.isInstalled() || !current.isVisible())
|
||||
continue;
|
||||
|
||||
if(current.getDependencies().contains(mod, Qt::CaseInsensitive))
|
||||
|
Reference in New Issue
Block a user