1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Implemented install of mods via setup

This commit is contained in:
Ivan Savenko
2023-03-12 18:33:29 +02:00
parent 9c92d97f98
commit 1ff317058e
7 changed files with 196 additions and 197 deletions

View File

@@ -90,12 +90,14 @@ void CModListView::setupModsView()
}
CModListView::CModListView(QWidget * parent)
: QWidget(parent), settingsListener(settings.listen["launcher"]["repositoryURL"]), ui(new Ui::CModListView)
: QWidget(parent)
, settingsListener(settings.listen["launcher"]["repositoryURL"])
, ui(new Ui::CModListView)
, repositoriesChanged(false)
{
settingsListener([&](const JsonNode &){ repositoriesChanged = true; });
ui->setupUi(this);
setupModModel();
setupFilterModel();
setupModsView();
@@ -835,7 +837,7 @@ bool CModListView::isModInstalled(const QString & modName)
QString CModListView::getTranslationModName(const QString & language)
{
for (auto const & modName : modModel->getModList())
for(const auto & modName : modModel->getModList())
{
auto mod = modModel->getMod(modName);