diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-03-31 23:47:56 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-07 00:20:02 +0200 |
commit | e0596d3c86806d952a9811f306f497f84430ae3c (patch) | |
tree | 283b039fd850d52d7b1ce7c5456f60f0fcdcf9af /application/pages/VersionPage.cpp | |
parent | 2ac0edbbdb27e12bae00c4779da135582bde89f5 (diff) | |
download | MultiMC-e0596d3c86806d952a9811f306f497f84430ae3c.tar MultiMC-e0596d3c86806d952a9811f306f497f84430ae3c.tar.gz MultiMC-e0596d3c86806d952a9811f306f497f84430ae3c.tar.lz MultiMC-e0596d3c86806d952a9811f306f497f84430ae3c.tar.xz MultiMC-e0596d3c86806d952a9811f306f497f84430ae3c.zip |
NOISSUE Make forge installable again
Diffstat (limited to 'application/pages/VersionPage.cpp')
-rw-r--r-- | application/pages/VersionPage.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/application/pages/VersionPage.cpp b/application/pages/VersionPage.cpp index 94068786..a7029b36 100644 --- a/application/pages/VersionPage.cpp +++ b/application/pages/VersionPage.cpp @@ -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(); } |