Fixed an issue where the multi-scraper would not update the filter index.

This commit is contained in:
Leon Styhre 2021-10-27 19:06:37 +02:00
parent 8dfe59ab93
commit facc1d4c0a

View file

@ -12,6 +12,7 @@
#include "guis/GuiScraperMulti.h"
#include "CollectionSystemsManager.h"
#include "FileFilterIndex.h"
#include "Gamelist.h"
#include "MameNames.h"
#include "SystemData.h"
@ -269,10 +270,13 @@ void GuiScraperMulti::acceptResult(const ScraperSearchResult& result)
{
ScraperSearchParams& search = mSearchQueue.front();
GuiScraperSearch::saveMetadata(result, search.game->metadata, search.game);
search.system->getIndex()->removeFromIndex(search.game);
GuiScraperSearch::saveMetadata(result, search.game->metadata, search.game);
updateGamelist(search.system);
search.system->getIndex()->addToIndex(search.game);
mSearchQueue.pop();
mCurrentGame++;
mTotalSuccessful++;