This commit is contained in:
Daniel 2025-07-30 10:54:33 +08:00
parent f0ff16c60a
commit b358d4b70f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -4682,11 +4682,15 @@ func regenAttrViewViewGroups(attrView *av.AttributeView, keyID string) {
for _, g := range view.Groups {
if view.Group.HideEmpty {
if 0 == g.GroupHidden && 1 > len(g.GroupItemIDs) {
g.GroupHidden = 1
if 1 > len(g.GroupItemIDs) {
if 0 == g.GroupHidden {
g.GroupHidden = 1
}
} else {
g.GroupHidden = 0
}
} else {
if 1 == g.GroupHidden {
if 2 != g.GroupHidden {
g.GroupHidden = 0
}
}