1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Do not attempt to install mods not available in repo, such as submods

This commit is contained in:
Ivan Savenko 2024-06-07 15:03:45 +00:00
parent 861ed7667d
commit 476beb5145

View File

@ -603,7 +603,7 @@ void CModListView::on_installButton_clicked()
for(auto & name : modModel->getRequirements(modName))
{
auto mod = modModel->getMod(name);
if(!mod.isInstalled())
if(mod.isAvailable())
downloadFile(name + ".zip", mod.getValue("download").toString(), name, mbToBytes(mod.getValue("downloadSize").toDouble()));
else if(!mod.isEnabled())
enableModByName(name);