mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 22:25:38 +00:00
Merge pull request #351 from pjft/fix-first-favorite
Fixing first favorites not updating index
This commit is contained in:
commit
96a0fa3a14
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue