aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/flame
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/flame
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/flame')
-rw-r--r--launcher/ui/pages/modplatform/flame/FlamePage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/ui/pages/modplatform/flame/FlamePage.cpp b/launcher/ui/pages/modplatform/flame/FlamePage.cpp
index f9ac4a78..95bb9d0f 100644
--- a/launcher/ui/pages/modplatform/flame/FlamePage.cpp
+++ b/launcher/ui/pages/modplatform/flame/FlamePage.cpp
@@ -155,7 +155,8 @@ void FlamePage::onSelectionChanged(QModelIndex curr, QModelIndex prev)
}
for (auto version : current.versions) {
- ui->versionSelectionBox->addItem(version.version, QVariant(version.downloadUrl));
+ auto release_type = version.version_type.isValid() ? QString(" : %1").arg(version.version_type.toString()) : "";
+ ui->versionSelectionBox->addItem(QString("%1%2").arg(version.version, release_type), QVariant(version.downloadUrl));
}
QVariant current_updated;