summaryrefslogtreecommitdiffstats
path: root/application/pages/VersionPage.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-12-29 00:37:14 +0100
committerPetr Mrázek <peterix@gmail.com>2017-12-29 00:37:14 +0100
commit719f3e863a2bdbaeaba37e837e0f6b75de124e6c (patch)
treebff005dd7e36b08d355bfec58742d44265fc0dd6 /application/pages/VersionPage.cpp
parent50ca6cbb4daaa4acd300defc6b7ecc7ccb46cebf (diff)
downloadMultiMC-719f3e863a2bdbaeaba37e837e0f6b75de124e6c.tar
MultiMC-719f3e863a2bdbaeaba37e837e0f6b75de124e6c.tar.gz
MultiMC-719f3e863a2bdbaeaba37e837e0f6b75de124e6c.tar.lz
MultiMC-719f3e863a2bdbaeaba37e837e0f6b75de124e6c.tar.xz
MultiMC-719f3e863a2bdbaeaba37e837e0f6b75de124e6c.zip
NOISSUE add versioning to component metadata format and use it
Diffstat (limited to 'application/pages/VersionPage.cpp')
-rw-r--r--application/pages/VersionPage.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/application/pages/VersionPage.cpp b/application/pages/VersionPage.cpp
index 8673e4bc..c86e76d5 100644
--- a/application/pages/VersionPage.cpp
+++ b/application/pages/VersionPage.cpp
@@ -402,44 +402,6 @@ void VersionPage::on_forgeBtn_clicked()
}
}
-// TODO: use something like this... except the final decision of what to show has to be deferred until the lists are known
-/*
-void VersionPage::on_liteloaderBtn_clicked()
-{
- QString uid = "com.mumfrey.liteloader";
- auto vlist = ENV.metadataIndex()->get(uid);
- if(!vlist)
- {
- return;
- }
- VersionSelectDialog vselect(vlist.get(), tr("Select %1 version").arg(vlist->name()), this);
- auto parentUid = vlist->parentUid();
- if(!parentUid.isEmpty())
- {
- auto parentvlist = ENV.metadataIndex()->get(parentUid);
- vselect.setExactFilter(BaseVersionList::ParentVersionRole, m_profile->getComponentVersion(parentUid));
- vselect.setEmptyString(
- tr("No %1 versions are currently available for %2 %3")
- .arg(vlist->name())
- .arg(parentvlist->name())
- .arg(m_profile->getComponentVersion(parentUid)));
- }
- else
- {
- vselect.setEmptyString(tr("No %1 versions are currently available"));
- }
- vselect.setEmptyErrorString(tr("Couldn't load or download the %1 version lists!").arg(vlist->name()));
- if (vselect.exec() && vselect.selectedVersion())
- {
- auto vsn = vselect.selectedVersion();
- m_profile->setComponentVersion(uid, vsn->descriptor());
- m_profile->resolve();
- preselect(m_profile->rowCount(QModelIndex())-1);
- m_container->refreshContainer();
- }
-}
-*/
-
void VersionPage::on_liteloaderBtn_clicked()
{
auto vlist = ENV.metadataIndex()->get("com.mumfrey.liteloader");