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

File diff suppressed because it is too large Load Diff