From ae1e9e31c7d037bdca45ffe137b3366b397d061a Mon Sep 17 00:00:00 2001 From: pjft Date: Sat, 20 Jan 2018 21:26:21 +0000 Subject: [PATCH] Fixing first favorites not updating index --- es-app/src/CollectionSystemManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/es-app/src/CollectionSystemManager.cpp b/es-app/src/CollectionSystemManager.cpp index 4f9978129..6aea7e108 100644 --- a/es-app/src/CollectionSystemManager.cpp +++ b/es-app/src/CollectionSystemManager.cpp @@ -491,6 +491,7 @@ bool CollectionSystemManager::toggleGameInCollection(FileData* file) } else { + file->getSourceFileData()->getSystem()->getIndex()->removeFromIndex(file); MetaDataList* md = &file->getSourceFileData()->metadata; std::string value = md->get("favorite"); if (value == "false") @@ -502,6 +503,7 @@ bool CollectionSystemManager::toggleGameInCollection(FileData* file) adding = false; md->set("favorite", "false"); } + file->getSourceFileData()->getSystem()->getIndex()->addToIndex(file); refreshCollectionSystems(file->getSourceFileData()); } if (adding)