The cached gamelist background is now updated when using the metadata editor.

This commit is contained in:
Leon Styhre 2020-09-13 19:20:30 +02:00
parent 98d38b3b46
commit d787f06c63
2 changed files with 6 additions and 2 deletions

View file

@ -386,6 +386,9 @@ void GuiMetaDataEd::save()
}
mScraperParams.system->onMetaDataSavePoint();
// Make sure that the cached background is updated to reflect any possible visible
// changes to the gamelist (e.g. the game name).
mWindow->invalidateCachedBackground();
}
void GuiMetaDataEd::fetch()

View file

@ -4,9 +4,8 @@
// Window management, screensaver and help prompts.
//
#pragma once
#ifndef ES_CORE_WINDOW_H
#define ES_CORE_WInDOW_H
#define ES_CORE_WINDOW_H
#include "resources/TextureResource.h"
#include "HelpPrompt.h"
@ -92,6 +91,8 @@ public:
void unsetLaunchedGame();
bool getGameLaunchedState() { return mGameLaunchedState; };
void invalidateCachedBackground() { mCachedBackground = false; };
private:
void onSleep();
void onWake();