From c75ce3c8b031c85300ac05f9900632b1ab68c54e Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 2 Dec 2021 18:35:02 +0100 Subject: [PATCH] Fixed a missed code path for a previous crash fix. --- es-app/src/guis/GuiGameScraper.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/es-app/src/guis/GuiGameScraper.cpp b/es-app/src/guis/GuiGameScraper.cpp index 7b8c2dc97..54e78d31f 100644 --- a/es-app/src/guis/GuiGameScraper.cpp +++ b/es-app/src/guis/GuiGameScraper.cpp @@ -100,12 +100,10 @@ GuiGameScraper::GuiGameScraper(Window* window, buttons.push_back(std::make_shared(mWindow, "CANCEL", "cancel", [&] { if (mSearch->getSavedNewMedia()) { // If the user aborted the scraping but there was still some media downloaded, - // then force an unload of the textures for the game image and marquee, and make - // an update of the game entry. Otherwise the images would not get updated until - // the user scrolls up and down the gamelist. - TextureResource::manualUnload(mSearchParams.game->getImagePath(), false); - TextureResource::manualUnload(mSearchParams.game->getMarqueePath(), false); - ViewController::get()->onFileChanged(mSearchParams.game, true); + // then flag to GuiMetaDataEd that the image and marquee textures need to be + // manually unloaded and that the gamelist needs to be reloaded. Otherwise the + // images would not get updated until the user scrolls up and down the gamelist. + mSavedMediaAndAborted = true; } delete this; }));