From 44475350ebfed97f6b0cb14c1e62c8ef67fb9a31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 5 Dec 2017 00:40:45 +0100 Subject: 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. --- application/pages/VersionPage.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'application') 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; -- cgit v1.2.3