mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-29 21:30:18 +02:00
add installed text to version select
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
b593ff09e9
commit
b1c8ab9350
@ -283,11 +283,15 @@ void ResourcePage::updateVersionList()
|
|||||||
if (!m_model->checkVersionFilters(version))
|
if (!m_model->checkVersionFilters(version))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
auto release_type = current_pack->versions[i].version_type.isValid()
|
auto versionText = version.version;
|
||||||
? QString(" [%1]").arg(current_pack->versions[i].version_type.toString())
|
if (version.version_type.isValid()) {
|
||||||
: "";
|
versionText += QString(" [%1]").arg(version.version_type.toString());
|
||||||
|
}
|
||||||
|
if (version.fileId == installedVersion) {
|
||||||
|
versionText += tr(" [installed]", "Mod version select");
|
||||||
|
}
|
||||||
|
|
||||||
m_ui->versionSelectionBox->addItem(QString("%1%2").arg(version.version, release_type), QVariant(i));
|
m_ui->versionSelectionBox->addItem(versionText, QVariant(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (m_ui->versionSelectionBox->count() == 0) {
|
if (m_ui->versionSelectionBox->count() == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user