moved segcont simplification to simplifyUI()

This commit is contained in:
Woody 2023-11-22 20:38:10 +01:00
parent ce0d906c35
commit db276d5f1f
No known key found for this signature in database
GPG Key ID: 9872D7F5072789B2

View File

@ -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";
} }