Merge pull request #12390 from lioncash/string

GraphicsModListWidget: Add string specifier to By and Description fields
This commit is contained in:
Admiral H. Curtiss 2023-12-11 23:47:53 +01:00 committed by GitHub
commit b48af86148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -210,14 +210,14 @@ void GraphicsModListWidget::OnModChanged(std::optional<std::string> absolute_pat
if (!mod->m_author.empty())
{
auto* author_label = new QLabel(tr("By: ") + QString::fromStdString(mod->m_author));
auto* author_label = new QLabel(tr("By: %1").arg(QString::fromStdString(mod->m_author)));
m_mod_meta_layout->addWidget(author_label);
}
if (!mod->m_description.empty())
{
auto* description_label =
new QLabel(tr("Description: ") + QString::fromStdString(mod->m_description));
new QLabel(tr("Description: %1").arg(QString::fromStdString(mod->m_description)));
description_label->setWordWrap(true);
m_mod_meta_layout->addWidget(description_label);
}