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:
@ -303,6 +303,17 @@ void VersionPage::on_changeVersionBtn_clicked()
|
||||
return;
|
||||
}
|
||||
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);
|
||||
if (!vselect.exec() || !vselect.selectedVersion())
|
||||
return;
|
||||
|
Reference in New Issue
Block a user