Fix Hub75 shown incorrectly in LED output dropdowns

Call hideHub75() after dynamically adding new LED outputs to ensure Hub75 options are removed when Hub75 support is not compiled in.

Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-25 10:06:30 +00:00
parent fc84725ae4
commit 99e0743281

View File

@@ -464,6 +464,7 @@ ${i+1}:
<div id="dig${i}a" style="display:inline"><br>Auto-calculate white channel from RGB:<br><select name="AW${i}"><option value=0>None</option><option value=1>Brighter</option><option value=2>Accurate</option><option value=3>Dual</option><option value=4>Max</option></select>&nbsp;</div>
</div>`;
f.insertAdjacentHTML("beforeend", cn);
hideHub75(); // remove Hub75 options if not supported
}
if (n==-1) {
o[--i].remove();--i;