summaryrefslogtreecommitdiffstats
path: root/application/pages
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-12-05 00:40:45 +0100
committerPetr Mrázek <peterix@gmail.com>2017-12-05 00:40:45 +0100
commit44475350ebfed97f6b0cb14c1e62c8ef67fb9a31 (patch)
treef4e66ab929b1846c3d7e230cac1d45273d4a06a5 /application/pages
parentdf1ec1f7c2196300dfc1f88de1315cfd9c8f8842 (diff)
downloadMultiMC-44475350ebfed97f6b0cb14c1e62c8ef67fb9a31.tar
MultiMC-44475350ebfed97f6b0cb14c1e62c8ef67fb9a31.tar.gz
MultiMC-44475350ebfed97f6b0cb14c1e62c8ef67fb9a31.tar.lz
MultiMC-44475350ebfed97f6b0cb14c1e62c8ef67fb9a31.tar.xz
MultiMC-44475350ebfed97f6b0cb14c1e62c8ef67fb9a31.zip
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.
Diffstat (limited to 'application/pages')
-rw-r--r--application/pages/VersionPage.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/application/pages/VersionPage.cpp b/application/pages/VersionPage.cpp
index c9f3453f..632c3734 100644
--- a/application/pages/VersionPage.cpp
+++ b/application/pages/VersionPage.cpp
@@ -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;