fix: plugins with zero contributed bits are show in usage UI (#777)

This commit is contained in:
bd_ 2024-03-16 15:57:00 +09:00 committed by GitHub
parent 2c69bb2b76
commit 12981d1060
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,6 +110,7 @@ namespace nadena.dev.modular_avatar.core.editor
var orderedPlugins = ParameterInfo.ForUI.GetParametersForObject(ctx)
.GroupBy(p => p.Plugin)
.Select(group => (group.Key, group.Sum(p => p.BitUsage)))
.Where((kv, index) => kv.Item2 > 0)
.OrderBy(group => group.Key.DisplayName)
.ToList();