mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Ignore hidden mods when checking mod dependencies
This commit is contained in:
parent
f83a004b54
commit
be47c66c57
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user