summaryrefslogtreecommitdiffstats
path: root/gui/pages/VersionPage.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-06-08 20:11:09 +0200
committerPetr Mrázek <peterix@gmail.com>2014-06-09 01:38:31 +0200
commitbf7b07050873770bd0b2ed5d73965b5a88d7a351 (patch)
treef29a06ac56d9197ac7bbd1df19faa7824e9d6cc5 /gui/pages/VersionPage.cpp
parent223a7aba7bfa6019d8a2cfa5e8f8a4791a96d136 (diff)
downloadMultiMC-bf7b07050873770bd0b2ed5d73965b5a88d7a351.tar
MultiMC-bf7b07050873770bd0b2ed5d73965b5a88d7a351.tar.gz
MultiMC-bf7b07050873770bd0b2ed5d73965b5a88d7a351.tar.lz
MultiMC-bf7b07050873770bd0b2ed5d73965b5a88d7a351.tar.xz
MultiMC-bf7b07050873770bd0b2ed5d73965b5a88d7a351.zip
Show texture/resource packs when appropriate.
Diffstat (limited to 'gui/pages/VersionPage.cpp')
-rw-r--r--gui/pages/VersionPage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/pages/VersionPage.cpp b/gui/pages/VersionPage.cpp
index 359e71c4..74c3c2af 100644
--- a/gui/pages/VersionPage.cpp
+++ b/gui/pages/VersionPage.cpp
@@ -368,7 +368,8 @@ void VersionPage::versionCurrent(const QModelIndex &current, const QModelIndex &
ui->moveLibraryDownBtn->setEnabled(enabled);
ui->moveLibraryUpBtn->setEnabled(enabled);
}
- if(m_version->versionFileId(current.row()) == "net.minecraft")
+ QString selectedId = m_version->versionFileId(current.row());
+ if(selectedId == "net.minecraft" || selectedId == "org.multimc.custom.json")
{
ui->changeMCVersionBtn->setEnabled(true);
}