NOISSUE Make forge installable again

This commit is contained in:
Petr Mrázek
2017-03-31 23:47:56 +02:00
parent 2ac0edbbdb
commit e0596d3c86
3 changed files with 106 additions and 85 deletions

View File

@ -401,7 +401,10 @@ void VersionPage::on_forgeBtn_clicked()
vselect.setEmptyErrorString(tr("Couldn't load or download the Forge version lists!"));
if (vselect.exec() && vselect.selectedVersion())
{
m_profile->installVersion(vselect.selectedVersion());
auto vsn = vselect.selectedVersion();
m_inst->setComponentVersion("net.minecraftforge", vsn->descriptor());
m_profile->reload();
// m_profile->installVersion();
preselect(m_profile->rowCount(QModelIndex())-1);
m_container->refreshContainer();
}
@ -420,7 +423,10 @@ void VersionPage::on_liteloaderBtn_clicked()
vselect.setEmptyErrorString(tr("Couldn't load or download the LiteLoader version lists!"));
if (vselect.exec() && vselect.selectedVersion())
{
m_profile->installVersion(vselect.selectedVersion());
auto vsn = vselect.selectedVersion();
m_inst->setComponentVersion("com.liteloader", vsn->descriptor());
m_profile->reload();
// m_profile->installVersion(vselect.selectedVersion());
preselect(m_profile->rowCount(QModelIndex())-1);
m_container->refreshContainer();
}