Merge pull request #3239 from haykam821/intermediary-errors

Fix Fabric loader error messages being reused for intermediary mappings
This commit is contained in:
Petr Mrázek 2020-07-18 12:31:45 +02:00 committed by GitHub
commit 3158082b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -357,8 +357,8 @@ void VersionPage::on_actionChange_version_triggered()
VersionSelectDialog vselect(list.get(), tr("Change %1 version").arg(name), this);
if (uid == "net.fabricmc.intermediary")
{
vselect.setEmptyString(tr("No Fabric Loader versions are currently available."));
vselect.setEmptyErrorString(tr("Couldn't load or download the Fabric Loader version lists!"));
vselect.setEmptyString(tr("No intermediary mappings versions are currently available."));
vselect.setEmptyErrorString(tr("Couldn't load or download the intermediary mappings version lists!"));
vselect.setExactFilter(BaseVersionList::ParentVersionRole, m_profile->getComponentVersion("net.minecraft"));
}
auto currentVersion = patch->getVersion();