mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-09-12 05:26:21 -04:00
Added gameVersion for curseforge mod packs
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
6b637a8797
commit
b54410b48c
@ -178,7 +178,11 @@ void FlamePage::onSelectionChanged(QModelIndex curr, [[maybe_unused]] QModelInde
|
|||||||
|
|
||||||
for (auto version : current.versions) {
|
for (auto version : current.versions) {
|
||||||
auto release_type = version.version_type.isValid() ? QString(" [%1]").arg(version.version_type.toString()) : "";
|
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));
|
auto mcVersion = !version.mcVersion.isEmpty() && !version.version.contains(version.mcVersion)
|
||||||
|
? QString(" for %1").arg(version.mcVersion)
|
||||||
|
: "";
|
||||||
|
ui->versionSelectionBox->addItem(QString("%1%2%3").arg(version.version, mcVersion, release_type),
|
||||||
|
QVariant(version.downloadUrl));
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariant current_updated;
|
QVariant current_updated;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user