feat(menuStyling): ignore empty menu names

This commit is contained in:
Lillith Rose 2025-09-28 15:24:53 -04:00
parent 2f770cf724
commit 5badf016a5

View file

@ -58,6 +58,7 @@ namespace gay.lilyy.MenuStyling
{
foreach (var child in menu.controls)
{
if (child.name != " " && child.name != "" && child.name != null) {
if (!child.name.StartsWith(config.Prefix))
{
child.name = config.Prefix + child.name;
@ -66,6 +67,8 @@ namespace gay.lilyy.MenuStyling
{
child.name += config.Suffix;
}
}
if (child.type == Control.ControlType.SubMenu && child.subMenu != null)
{
WalkMenu(config, child.subMenu);