Fixing check for field that was removed

This commit is contained in:
Dan 2026-01-09 13:27:32 +00:00
parent 7b74e5e997
commit c82cfa1d23
5 changed files with 5 additions and 8 deletions

View file

@ -90,9 +90,9 @@ export class TextShadowEffect extends ButtonEffect {
isEnabled(controlValues) {
const suffix = this.textLineNumber === 1 ? "" : "2";
const textEnabled = controlValues[`text${suffix}-enabled`];
const text = controlValues[`button-text${suffix}`];
const shadowEnabled = controlValues[`text${suffix}-shadow-enabled`];
return textEnabled && shadowEnabled;
return text && text.trim() !== "" && shadowEnabled;
}
apply(context, controlValues, animState, renderData) {