From d431aa4b59798f34497f0e86107eebd9acb001f3 Mon Sep 17 00:00:00 2001 From: Xaver <27882680+WoodyLetsCode@users.noreply.github.com> Date: Wed, 25 Oct 2023 07:56:23 +0200 Subject: [PATCH 1/2] Show 2D Config button by default --- wled00/data/settings.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/data/settings.htm b/wled00/data/settings.htm index b48918a5b..0e1601081 100644 --- a/wled00/data/settings.htm +++ b/wled00/data/settings.htm @@ -80,7 +80,7 @@ - + From 34bed44a9bf16df571c547b27cbd9152872d3c9e Mon Sep 17 00:00:00 2001 From: Woody Date: Wed, 25 Oct 2023 18:33:31 +0200 Subject: [PATCH 2/2] Hide 2D Configuration if 2D is not compiled in --- wled00/xml.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/xml.cpp b/wled00/xml.cpp index 23de81793..cfa718bfa 100644 --- a/wled00/xml.cpp +++ b/wled00/xml.cpp @@ -238,8 +238,8 @@ void getSettingsJS(byte subPage, char* dest) if (subPage == SUBPAGE_MENU) { - #ifndef WLED_DISABLE_2D // include only if 2D is compiled in - oappend(PSTR("gId('2dbtn').style.display='';")); + #ifdef WLED_DISABLE_2D // include only if 2D is not compiled in + oappend(PSTR("gId('2dbtn').style.display='none';")); #endif #ifdef WLED_ENABLE_DMX // include only if DMX is enabled oappend(PSTR("gId('dmxbtn').style.display='';"));