From 8dd4e916a794592ad3435bdec82584ed4b3a2130 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Fri, 1 Jul 2022 18:54:32 -0500 Subject: [PATCH 1/2] DolphinQt: save changes to disk before refreshing mod list --- Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp b/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp index 712a18a558..d0ac612e61 100644 --- a/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp +++ b/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp @@ -107,6 +107,11 @@ void GraphicsModListWidget::ConnectWidgets() void GraphicsModListWidget::RefreshModList() { + if (m_needs_save) + { + SaveToDisk(); + } + m_mod_list->setCurrentItem(nullptr); m_mod_list->clear(); From 66f50858007a4d1cc501b7650d3331d03342874f Mon Sep 17 00:00:00 2001 From: iwubcode Date: Fri, 1 Jul 2022 18:55:22 -0500 Subject: [PATCH 2/2] DolphinQt: add word wrap to graphics mods description --- Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp b/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp index d0ac612e61..cb9569d1d1 100644 --- a/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp +++ b/Source/Core/DolphinQt/Config/GraphicsModListWidget.cpp @@ -219,6 +219,7 @@ void GraphicsModListWidget::OnModChanged(std::optional 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); } }