layer visibility toggle affects wrong layer (bleeding edge branch)

Fixes #71
This commit is contained in:
Victor Seiji Hariki 2022-12-06 20:17:31 -03:00
parent 5f16b8b21d
commit 1888d7f8a3

View file

@ -349,15 +349,15 @@ commands.createCommand(
_hidden: false,
set hidden(v) {
if (v) {
uil._hidden = true;
uil.layer.hide(v);
this._hidden = true;
this.layer.hide(v);
} else {
uil._hidden = false;
uil.layer.unhide(v);
this._hidden = false;
this.layer.unhide(v);
}
},
get hidden() {
return uil._hidden;
return this._hidden;
},
entry: null,
layer,