Merge pull request #451 from Scrumplex/fix-modloader-selection
This commit is contained in:
commit
b9d5e1bbf1
@ -31,7 +31,7 @@ void InstanceCreationTask::executeTask()
|
|||||||
components->buildingFromScratch();
|
components->buildingFromScratch();
|
||||||
components->setComponentVersion("net.minecraft", m_version->descriptor(), true);
|
components->setComponentVersion("net.minecraft", m_version->descriptor(), true);
|
||||||
if(m_usingLoader)
|
if(m_usingLoader)
|
||||||
components->setComponentVersion(m_loader, m_loaderVersion->descriptor(), true);
|
components->setComponentVersion(m_loader, m_loaderVersion->descriptor());
|
||||||
inst.setName(m_instName);
|
inst.setName(m_instName);
|
||||||
inst.setIconKey(m_instIcon);
|
inst.setIconKey(m_instIcon);
|
||||||
instanceSettings->resumeSave();
|
instanceSettings->resumeSave();
|
||||||
|
@ -158,7 +158,6 @@ void VanillaPage::loaderFilterChanged()
|
|||||||
auto vlist = APPLICATION->metadataIndex()->get(m_selectedLoader);
|
auto vlist = APPLICATION->metadataIndex()->get(m_selectedLoader);
|
||||||
ui->loaderVersionList->initialize(vlist.get());
|
ui->loaderVersionList->initialize(vlist.get());
|
||||||
ui->loaderVersionList->selectRecommended();
|
ui->loaderVersionList->selectRecommended();
|
||||||
suggestCurrent();
|
|
||||||
ui->loaderVersionList->setEmptyString(tr("No versions are currently available for Minecraft %1").arg(minecraftVersion));
|
ui->loaderVersionList->setEmptyString(tr("No versions are currently available for Minecraft %1").arg(minecraftVersion));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -205,8 +204,8 @@ void VanillaPage::suggestCurrent()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// List is empty if either no mod loader is selected, or no versions are available
|
// There isn't a selected version if the version list is empty
|
||||||
if(!ui->loaderVersionList->hasVersions())
|
if(ui->loaderVersionList->selectedVersion() == nullptr)
|
||||||
dialog->setSuggestedPack(m_selectedVersion->descriptor(), new InstanceCreationTask(m_selectedVersion));
|
dialog->setSuggestedPack(m_selectedVersion->descriptor(), new InstanceCreationTask(m_selectedVersion));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user