NOISSUE placeholder for proper 'change version' functionality

When using this on forge or liteloader, it now uses the 'install'
dialogs instead.
This will have to be done properly using the component version metadata
later.
This commit is contained in:
Petr Mrázek 2017-12-05 00:40:45 +01:00
parent df1ec1f7c2
commit 44475350eb

View File

@ -303,6 +303,17 @@ void VersionPage::on_changeVersionBtn_clicked()
return; return;
} }
auto uid = list->uid(); auto uid = list->uid();
// FIXME: this is a horrible HACK. Get version filtering information from the actual metadata...
if(uid == "net.minecraftforge")
{
on_forgeBtn_clicked();
return;
}
else if (uid == "com.mumfrey.liteloader")
{
on_liteloaderBtn_clicked();
return;
}
VersionSelectDialog vselect(list.get(), tr("Change %1 version").arg(name), this); VersionSelectDialog vselect(list.get(), tr("Change %1 version").arg(name), this);
if (!vselect.exec() || !vselect.selectedVersion()) if (!vselect.exec() || !vselect.selectedVersion())
return; return;