diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-05-26 16:23:43 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-05-26 16:23:43 -0700 |
commit | cf4df19986fe53357ef04b2a4407f69a2f4fa196 (patch) | |
tree | 2750dc9c35dd98fee709db4ab2b2d87280b54994 /launcher/ui/pages/modplatform/ModPage.cpp | |
parent | c15603406907383c58786cb1dc235ac79c7f9626 (diff) | |
download | PrismLauncher-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.cpp | 6 |
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)); |