From 48312795433dc24ea01caaa6c83902dc64a7bd4a Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 20 Oct 2020 21:10:23 +0200 Subject: [PATCH] Fixed an issue where changing view style did not invalidate the cached background. --- es-app/src/guis/GuiMenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index da9ac1005..27e61b42f 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -247,12 +247,13 @@ void GuiMenu::openUISettings() gamelist_style->add(*it, *it, Settings::getInstance()-> getString("GamelistViewStyle") == *it); s->addWithLabel("GAMELIST VIEW STYLE", gamelist_style); - s->addSaveFunc([gamelist_style] { + s->addSaveFunc([gamelist_style, this] { bool needReload = false; if (Settings::getInstance()->getString("GamelistViewStyle") != gamelist_style->getSelected()) needReload = true; Settings::getInstance()->setString("GamelistViewStyle", gamelist_style->getSelected()); + mWindow->invalidateCachedBackground(); if (needReload) ViewController::get()->reloadAll(); });