mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 16:15:39 +00:00
Fixing first favorites not updating index
This commit is contained in:
parent
5f062ff9bc
commit
ae1e9e31c7
|
@ -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