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:
parent
861ed7667d
commit
476beb5145
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user