Removed an unnecessary if statement when invalidating the cached background.

This commit is contained in:
Leon Styhre 2021-03-21 18:55:01 +01:00
parent 84f4913610
commit ef7c83b7e5

View file

@ -142,8 +142,6 @@ void GuiSettings::save()
// time and thus not getting included in the regenerated cached background. // 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. // This is just a hack though and a better mechanism is needed to handle this.
SDL_Delay(100); SDL_Delay(100);
if (mNeedsSaving || mNeedsCollectionsUpdate || mNeedsReloading || mNeedsSorting ||
mNeedsGoToStart || mNeedsGoToSystem)
mWindow->invalidateCachedBackground(); mWindow->invalidateCachedBackground();
} }
} }