fix: use better naming for Modrinth pack versions
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
0ec4ade683
commit
64d123f524
@ -199,7 +199,10 @@ void ModrinthPage::onSelectionChanged(QModelIndex curr, QModelIndex prev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (auto version : current.versions) {
|
for (auto version : current.versions) {
|
||||||
ui->versionSelectionBox->addItem(version.version, QVariant(version.id));
|
if (!version.name.contains(version.version))
|
||||||
|
ui->versionSelectionBox->addItem(QString("%1 — %2").arg(version.name, version.version), QVariant(version.id));
|
||||||
|
else
|
||||||
|
ui->versionSelectionBox->addItem(version.name, QVariant(version.id));
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariant current_updated;
|
QVariant current_updated;
|
||||||
@ -218,7 +221,10 @@ void ModrinthPage::onSelectionChanged(QModelIndex curr, QModelIndex prev)
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
for (auto version : current.versions) {
|
for (auto version : current.versions) {
|
||||||
ui->versionSelectionBox->addItem(QString("%1 - %2").arg(version.name, version.version), QVariant(version.id));
|
if (!version.name.contains(version.version))
|
||||||
|
ui->versionSelectionBox->addItem(QString("%1 - %2").arg(version.name, version.version), QVariant(version.id));
|
||||||
|
else
|
||||||
|
ui->versionSelectionBox->addItem(version.name, QVariant(version.id));
|
||||||
}
|
}
|
||||||
|
|
||||||
suggestCurrent();
|
suggestCurrent();
|
||||||
|
Loading…
Reference in New Issue
Block a user