summaryrefslogtreecommitdiffstats
path: root/application/pages/instance
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-06-15 22:45:56 +0200
committerPetr Mrázek <peterix@gmail.com>2019-06-15 22:45:56 +0200
commit8aa4b9dac517a7faa16fe1ba1a9751c53028c433 (patch)
tree57c51862ce34fa4b0b2b3194a3d37e65f3be35df /application/pages/instance
parent4836ba22cd870c507a30e40bbee3976362cf4d06 (diff)
downloadMultiMC-8aa4b9dac517a7faa16fe1ba1a9751c53028c433.tar
MultiMC-8aa4b9dac517a7faa16fe1ba1a9751c53028c433.tar.gz
MultiMC-8aa4b9dac517a7faa16fe1ba1a9751c53028c433.tar.lz
MultiMC-8aa4b9dac517a7faa16fe1ba1a9751c53028c433.tar.xz
MultiMC-8aa4b9dac517a7faa16fe1ba1a9751c53028c433.zip
NOISSUE limit fabric intermediary selection options in UI by minecraft version
Diffstat (limited to 'application/pages/instance')
-rw-r--r--application/pages/instance/VersionPage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/application/pages/instance/VersionPage.cpp b/application/pages/instance/VersionPage.cpp
index 699a5c10..fc1755e4 100644
--- a/application/pages/instance/VersionPage.cpp
+++ b/application/pages/instance/VersionPage.cpp
@@ -318,6 +318,12 @@ void VersionPage::on_changeVersionBtn_clicked()
return;
}
VersionSelectDialog vselect(list.get(), tr("Change %1 version").arg(name), this);
+ if (uid == "net.fabricmc.intermediary")
+ {
+ vselect.setEmptyString(tr("No Fabric Loader versions are currently available."));
+ vselect.setEmptyErrorString(tr("Couldn't load or download the Fabric Loader version lists!"));
+ vselect.setExactFilter(BaseVersionList::ParentVersionRole, m_profile->getComponentVersion("net.minecraft"));
+ }
auto currentVersion = patch->getVersion();
if(!currentVersion.isEmpty())
{