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, _hidden: false,
set hidden(v) { set hidden(v) {
if (v) { if (v) {
uil._hidden = true; this._hidden = true;
uil.layer.hide(v); this.layer.hide(v);
} else { } else {
uil._hidden = false; this._hidden = false;
uil.layer.unhide(v); this.layer.unhide(v);
} }
}, },
get hidden() { get hidden() {
return uil._hidden; return this._hidden;
}, },
entry: null, entry: null,
layer, layer,