Fixed an issue where the Recent collection did not work as expected.

This commit is contained in:
Leon Styhre 2021-01-12 18:34:23 +01:00
parent c2c433707e
commit 377fed2b23

View file

@ -406,7 +406,7 @@ void CollectionSystemsManager::updateCollectionSystem(FileData* file, Collection
}
if (name == "recent") {
rootFolder->sort(rootFolder->getSortTypeFromString("last played, descending"));
rootFolder->sort(rootFolder->getSortTypeFromString("last played, ascending"));
}
else if (sysData.decl.isCustom &&
!Settings::getInstance()->getBool("UseCustomCollectionsSystem")) {
@ -1094,7 +1094,7 @@ void CollectionSystemsManager::populateAutoCollection(CollectionSystemData* sysD
}
}
if (rootFolder->getName() == "recent")
rootFolder->sort(rootFolder->getSortTypeFromString("last played, descending"));
rootFolder->sort(rootFolder->getSortTypeFromString("last played, ascending"));
else
rootFolder->sort(rootFolder->getSortTypeFromString(rootFolder->getSortTypeString()),
Settings::getInstance()->getBool("FavoritesFirst"));