From d0c6e7a2859a6c8fce91d0104012476ce7579a92 Mon Sep 17 00:00:00 2001 From: Woody Date: Wed, 6 Dec 2023 19:20:58 +0100 Subject: [PATCH] Add check if UI was already simplified --- wled00/data/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wled00/data/index.js b/wled00/data/index.js index 6d633a3da..498e7f4cf 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -3073,6 +3073,9 @@ function simplifyUI() { gId(id).append(dialog); } + // Check if the UI was already simplified + if (gId("Colors").classList.contains("simplified")) return; + // Disable PC Mode as it does not exist in simple UI if (pcMode) togglePcMode(true); _C.style.width = '100%'