Merge pull request #10801 from iwubcode/graphics_mod_fixes_part2

More Graphics Mods Fixes
This commit is contained in:
JMC47 2022-07-01 23:09:50 -04:00 committed by GitHub
commit edd89e343c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -107,6 +107,11 @@ void GraphicsModListWidget::ConnectWidgets()
void GraphicsModListWidget::RefreshModList()
{
if (m_needs_save)
{
SaveToDisk();
}
m_mod_list->setCurrentItem(nullptr);
m_mod_list->clear();
@ -214,6 +219,7 @@ void GraphicsModListWidget::OnModChanged(std::optional<std::string> absolute_pat
{
auto* description_label =
new QLabel(tr("Description: ") + QString::fromStdString(mod->m_description));
description_label->setWordWrap(true);
m_mod_meta_layout->addWidget(description_label);
}
}