mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Fix installation of multiple mods at once
This commit is contained in:
@@ -95,9 +95,14 @@ double ModStateModel::getInstalledModSizeMegabytes(QString modName) const
|
||||
return modManager->getInstalledModSizeMegabytes(modName.toStdString());
|
||||
}
|
||||
|
||||
void ModStateModel::doEnableMod(QString modname)
|
||||
void ModStateModel::doEnableMods(QStringList modList)
|
||||
{
|
||||
modManager->tryEnableMod(modname.toStdString());
|
||||
std::vector<std::string> stdList;
|
||||
|
||||
for (const auto & entry : modList)
|
||||
stdList.push_back(entry.toStdString());
|
||||
|
||||
modManager->tryEnableMods(stdList);
|
||||
}
|
||||
|
||||
void ModStateModel::doDisableMod(QString modname)
|
||||
|
||||
Reference in New Issue
Block a user