mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-12 17:13:18 +02:00
Only allow searching subcollections when using merged collections
This commit is contained in:
@@ -78,6 +78,11 @@ void CollectionInfo::addSubcollection(CollectionInfo *newinfo)
|
||||
items.insert(items.begin(), newinfo->items.begin(), newinfo->items.end());
|
||||
}
|
||||
|
||||
bool CollectionInfo::hasSubcollections()
|
||||
{
|
||||
return (subcollections_.size() > 0);
|
||||
}
|
||||
|
||||
bool CollectionInfo::itemIsLess(Item *lhs, Item *rhs)
|
||||
{
|
||||
return lhs->lowercaseFullTitle() < rhs->lowercaseFullTitle();
|
||||
|
||||
@@ -28,6 +28,7 @@ public:
|
||||
std::string settingsPath() const;
|
||||
void sortItems();
|
||||
void addSubcollection(CollectionInfo *info);
|
||||
bool hasSubcollections();
|
||||
void extensionList(std::vector<std::string> &extensions);
|
||||
std::string name;
|
||||
std::string listpath;
|
||||
|
||||
Reference in New Issue
Block a user