mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 16:56:35 +00:00
moved segcont simplification to simplifyUI()
This commit is contained in:
parent
ce0d906c35
commit
db276d5f1f
@ -837,8 +837,6 @@ function populateSegments(s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
gId('segcont').innerHTML = cn;
|
gId('segcont').innerHTML = cn;
|
||||||
if (simplifiedUI) gId('segcont').classList.add("simple");
|
|
||||||
else gId('segcont').classList.remove("simple");
|
|
||||||
let noNewSegs = (lowestUnused >= maxSeg);
|
let noNewSegs = (lowestUnused >= maxSeg);
|
||||||
resetUtil(noNewSegs);
|
resetUtil(noNewSegs);
|
||||||
if (gId('selall')) gId('selall').checked = true;
|
if (gId('selall')) gId('selall').checked = true;
|
||||||
@ -3081,6 +3079,9 @@ function simplifyUI() {
|
|||||||
// We only want Effect Search to stay on top
|
// We only want Effect Search to stay on top
|
||||||
gId("palw").firstElementChild.classList.remove("staytop");
|
gId("palw").firstElementChild.classList.remove("staytop");
|
||||||
|
|
||||||
|
// Simplify segments
|
||||||
|
gId('segcont').classList.add("simple");
|
||||||
|
|
||||||
// Hide filter options
|
// Hide filter options
|
||||||
gId("filters").style.display = "none";
|
gId("filters").style.display = "none";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user