From 381208b81f3b128df806df304262c71612f32c55 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Jan 2026 20:53:34 +0000 Subject: [PATCH] Fix Hub75 removal breaking Hub75-enabled builds Only call hideHub75() when Hub75 is actually disabled. Track with window.hub75Hidden flag set when hideHub75() is first called by backend. Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.com> --- wled00/data/settings_leds.htm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wled00/data/settings_leds.htm b/wled00/data/settings_leds.htm index 487f3385..c2775ac4 100644 --- a/wled00/data/settings_leds.htm +++ b/wled00/data/settings_leds.htm @@ -17,6 +17,7 @@ function gId(n){return d.getElementById(n);} function hideNoIR(){gId("irOnOff2").style.display="none";} //WLEDMM function hideHub75() { + window.hub75Hidden = true; // Track that Hub75 should be hidden var s = d.getElementsByTagName("select"); for (i=0; i
Auto-calculate white channel from RGB:
  `; f.insertAdjacentHTML("beforeend", cn); - hideHub75(); // remove Hub75 options if not supported + if (window.hub75Hidden) hideHub75(); // remove Hub75 options if not supported } if (n==-1) { o[--i].remove();--i;