aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/ModPage.cpp
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-26 16:23:43 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-26 16:23:43 -0700
commitcf4df19986fe53357ef04b2a4407f69a2f4fa196 (patch)
tree2750dc9c35dd98fee709db4ab2b2d87280b54994 /launcher/ui/pages/modplatform/ModPage.cpp
parentc15603406907383c58786cb1dc235ac79c7f9626 (diff)
downloadPrismLauncher-cf4df19986fe53357ef04b2a4407f69a2f4fa196.tar.gz
PrismLauncher-cf4df19986fe53357ef04b2a4407f69a2f4fa196.tar.bz2
PrismLauncher-cf4df19986fe53357ef04b2a4407f69a2f4fa196.zip
feat: display release type
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/ui/pages/modplatform/ModPage.cpp')
-rw-r--r--launcher/ui/pages/modplatform/ModPage.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/launcher/ui/pages/modplatform/ModPage.cpp b/launcher/ui/pages/modplatform/ModPage.cpp
index 04be43ad..e156f500 100644
--- a/launcher/ui/pages/modplatform/ModPage.cpp
+++ b/launcher/ui/pages/modplatform/ModPage.cpp
@@ -137,8 +137,10 @@ void ModPage::updateVersionList()
}
// Only add the version if it's valid or using the 'Any' filter, but never if the version is opted out
- if ((valid || m_filter->versions.empty()) && !optedOut(version))
- m_ui->versionSelectionBox->addItem(version.version, QVariant(i));
+ if ((valid || m_filter->versions.empty()) && !optedOut(version)) {
+ auto release_type = version.verison_type.isValid() ? QString(" : %1").arg(version.verison_type.toString()) : "";
+ m_ui->versionSelectionBox->addItem(QString("%1%2").arg(version.version, release_type), QVariant(i));
+ }
}
if (m_ui->versionSelectionBox->count() == 0) {
m_ui->versionSelectionBox->addItem(tr("No valid version found!"), QVariant(-1));