mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
Fixed an issue where empty grouped collections would be removed upon startup.
This commit is contained in:
parent
4f21d1b351
commit
c9c5e53066
|
@ -481,8 +481,10 @@ void FileData::sort(ComparisonFunction& comparator,
|
|||
// should be filtered already at that earlier point.
|
||||
if ((*it)->getHidden())
|
||||
it = mChildren.erase(it);
|
||||
// Also hide folders where all its entries have been hidden.
|
||||
else if ((*it)->getType() == FOLDER && (*it)->getChildren().size() == 0)
|
||||
// Also hide folders where all its entries have been hidden, unless it's a
|
||||
// grouped custom collection.
|
||||
else if ((*it)->getType() == FOLDER && (*it)->getChildren().size() == 0 &&
|
||||
!(*it)->getSystem()->isGroupedCustomCollection())
|
||||
it = mChildren.erase(it);
|
||||
else
|
||||
it++;
|
||||
|
|
Loading…
Reference in a new issue