From db276d5f1f4072de48dc0ee485637f25a448b640 Mon Sep 17 00:00:00 2001 From: Woody Date: Wed, 22 Nov 2023 20:38:10 +0100 Subject: [PATCH] moved segcont simplification to simplifyUI() --- wled00/data/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wled00/data/index.js b/wled00/data/index.js index f9bc6ae33..8136239b5 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -837,8 +837,6 @@ function populateSegments(s) } gId('segcont').innerHTML = cn; - if (simplifiedUI) gId('segcont').classList.add("simple"); - else gId('segcont').classList.remove("simple"); let noNewSegs = (lowestUnused >= maxSeg); resetUtil(noNewSegs); if (gId('selall')) gId('selall').checked = true; @@ -3081,6 +3079,9 @@ function simplifyUI() { // We only want Effect Search to stay on top gId("palw").firstElementChild.classList.remove("staytop"); + // Simplify segments + gId('segcont').classList.add("simple"); + // Hide filter options gId("filters").style.display = "none"; }