This commit is contained in:
Daniel 2025-08-22 00:00:38 +08:00
parent f8bccc2d9f
commit 83af400f65
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 11 additions and 4 deletions

View file

@ -184,14 +184,16 @@ func hideEmptyGroupViews(view *av.View, viewable av.Viewable) {
return
}
groupHidden := viewable.GetGroupHidden()
if !view.Group.HideEmpty {
if 2 != viewable.GetGroupHidden() {
if 2 != groupHidden {
viewable.SetGroupHidden(0)
}
return
}
if 1 == viewable.GetGroupHidden() && 0 < viewable.(av.Collection).CountItems() {
itemCount := viewable.(av.Collection).CountItems()
if 1 == groupHidden && 0 < itemCount {
viewable.SetGroupHidden(0)
}
}