From ef7c83b7e53054719e89c48d902e8383b9f98d74 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 21 Mar 2021 18:55:01 +0100 Subject: [PATCH] Removed an unnecessary if statement when invalidating the cached background. --- es-app/src/guis/GuiSettings.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/es-app/src/guis/GuiSettings.cpp b/es-app/src/guis/GuiSettings.cpp index 1dacad22d..d7d30bb8d 100644 --- a/es-app/src/guis/GuiSettings.cpp +++ b/es-app/src/guis/GuiSettings.cpp @@ -142,9 +142,7 @@ void GuiSettings::save() // time and thus not getting included in the regenerated cached background. // This is just a hack though and a better mechanism is needed to handle this. SDL_Delay(100); - if (mNeedsSaving || mNeedsCollectionsUpdate || mNeedsReloading || mNeedsSorting || - mNeedsGoToStart || mNeedsGoToSystem) - mWindow->invalidateCachedBackground(); + mWindow->invalidateCachedBackground(); } }