This commit is contained in:
Daniel 2025-08-21 13:03:10 +08:00
parent e746093a0f
commit 93580cc27f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 7 additions and 3 deletions

View file

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