Additional fix for transpose checkbox.

This commit is contained in:
Blaz Kristan 2022-09-06 15:44:41 +02:00
parent 6802f5a802
commit 4f3de8646a
2 changed files with 1845 additions and 1844 deletions

View File

@ -1044,7 +1044,7 @@ function updateLen(s)
let tPL = gId(`seg${s}lbtm`);
if (stop-start>1 && stopY-startY>1) {
// 2D segment
tPL.classList.remove("hide"); // unhide transpose checkbox
if (tPL) tPL.classList.remove("hide"); // unhide transpose checkbox
let sE = gId('fxlist').querySelector(`.lstI[data-id="${selectedFx}"]`);
if (sE) {
let sN = sE.querySelector(".lstIname").innerText;
@ -1056,10 +1056,12 @@ function updateLen(s)
}
} else {
// 1D segment in 2D set-up
if (tPL) {
tPL.classList.add("hide"); // hide transpose checkbox
gId(`seg${s}tp`).checked = false; // and uncheck it
}
}
}
var out = "(delete)";
if (len > 1) {
out = `${len} LEDs`;

File diff suppressed because it is too large Load Diff