From 193af56e40d584ce64035dcb7a15d3a86e82ad53 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 24 Aug 2024 13:54:31 +0200 Subject: [PATCH] Fixed an issue where returning from a game would sometimes make the helpsystem use the dimmed theme properties --- es-app/src/FileData.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/es-app/src/FileData.cpp b/es-app/src/FileData.cpp index d1cc842ac..efe804b0c 100644 --- a/es-app/src/FileData.cpp +++ b/es-app/src/FileData.cpp @@ -2126,8 +2126,13 @@ returnValue = Utils::Platform::launchGameUnix(command, startDirectory, runInBack gameToUpdate->metadata.get("lastplayed")); } - CollectionSystemsManager::getInstance()->refreshCollectionSystems(gameToUpdate); + // We make an explicit call to close the launch screen instead of waiting for + // AnimationController to do it as that would be done too late. This is so because on + // gamelist reload the helpsystem uses the state of the launch screen to select between + // the dimmed and undimmed element properties. + window->closeLaunchScreen(); + CollectionSystemsManager::getInstance()->refreshCollectionSystems(gameToUpdate); gameToUpdate->mSystem->onMetaDataSavePoint(); }