summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-06-26 20:51:04 +0200
committerPetr Mrázek <peterix@gmail.com>2019-06-26 20:51:04 +0200
commit917f148fc41db7d68ef94c8ea29cd417a8f1ff33 (patch)
tree6d3e7d68c399d9ec074ec9543dd9ec92c1b9bc9f
parent34611c00e3f04b1791bff2b6df7c5ea14d403de4 (diff)
downloadMultiMC-917f148fc41db7d68ef94c8ea29cd417a8f1ff33.tar
MultiMC-917f148fc41db7d68ef94c8ea29cd417a8f1ff33.tar.gz
MultiMC-917f148fc41db7d68ef94c8ea29cd417a8f1ff33.tar.lz
MultiMC-917f148fc41db7d68ef94c8ea29cd417a8f1ff33.tar.xz
MultiMC-917f148fc41db7d68ef94c8ea29cd417a8f1ff33.zip
NOISSUE add support for 'experiment' Minecraft versions
-rw-r--r--application/pages/modplatform/VanillaPage.cpp3
-rw-r--r--application/pages/modplatform/VanillaPage.ui20
2 files changed, 23 insertions, 0 deletions
diff --git a/application/pages/modplatform/VanillaPage.cpp b/application/pages/modplatform/VanillaPage.cpp
index 77362fcc..17535f1e 100644
--- a/application/pages/modplatform/VanillaPage.cpp
+++ b/application/pages/modplatform/VanillaPage.cpp
@@ -23,6 +23,7 @@ VanillaPage::VanillaPage(NewInstanceDialog *dialog, QWidget *parent)
connect(ui->snapshotFilter, &QCheckBox::stateChanged, this, &VanillaPage::filterChanged);
connect(ui->oldSnapshotFilter, &QCheckBox::stateChanged, this, &VanillaPage::filterChanged);
connect(ui->releaseFilter, &QCheckBox::stateChanged, this, &VanillaPage::filterChanged);
+ connect(ui->experimentsFilter, &QCheckBox::stateChanged, this, &VanillaPage::filterChanged);
connect(ui->refreshBtn, &QPushButton::clicked, this, &VanillaPage::refresh);
}
@@ -58,6 +59,8 @@ void VanillaPage::filterChanged()
out << "(old_snapshot)";
if(ui->releaseFilter->isChecked())
out << "(release)";
+ if(ui->experimentsFilter->isChecked())
+ out << "(experiment)";
auto regexp = out.join('|');
ui->versionList->setFilter(BaseVersionList::TypeRole, new RegexpFilter(regexp, false));
}
diff --git a/application/pages/modplatform/VanillaPage.ui b/application/pages/modplatform/VanillaPage.ui
index ae9cab47..47effc86 100644
--- a/application/pages/modplatform/VanillaPage.ui
+++ b/application/pages/modplatform/VanillaPage.ui
@@ -99,6 +99,16 @@
</widget>
</item>
<item>
+ <widget class="QCheckBox" name="experimentsFilter">
+ <property name="text">
+ <string>Experiments</string>
+ </property>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
@@ -144,6 +154,16 @@
<container>1</container>
</customwidget>
</customwidgets>
+ <tabstops>
+ <tabstop>tabWidget</tabstop>
+ <tabstop>releaseFilter</tabstop>
+ <tabstop>snapshotFilter</tabstop>
+ <tabstop>oldSnapshotFilter</tabstop>
+ <tabstop>betaFilter</tabstop>
+ <tabstop>alphaFilter</tabstop>
+ <tabstop>experimentsFilter</tabstop>
+ <tabstop>refreshBtn</tabstop>
+ </tabstops>
<resources/>
<connections/>
</ui>