Skip to content

Commit ccc56d4

Browse files
authoredOct 31, 2023
Merge pull request #3484 from WoodyLetsCode/settings-page
Show 2D Configuration button by default
2 parents e5f6f8d + 34bed44 commit ccc56d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎wled00/data/settings.htm

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<button type=submit id="b" onclick="window.location=getURL('/')">Back</button>
8181
<button type="submit" onclick="window.location=getURL('/settings/wifi')">WiFi Setup</button>
8282
<button type="submit" onclick="window.location=getURL('/settings/leds')">LED Preferences</button>
83-
<button id="2dbtn" style="display:none;" type="submit" onclick="window.location=getURL('/settings/2D')">2D Configuration</button>
83+
<button id="2dbtn" type="submit" onclick="window.location=getURL('/settings/2D')">2D Configuration</button>
8484
<button type="submit" onclick="window.location=getURL('/settings/ui')">User Interface</button>
8585
<button id="dmxbtn" style="display:none;" type="submit" onclick="window.location=getURL('/settings/dmx')">DMX Output</button>
8686
<button type="submit" onclick="window.location=getURL('/settings/sync')">Sync Interfaces</button>

‎wled00/xml.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ void getSettingsJS(byte subPage, char* dest)
238238

239239
if (subPage == SUBPAGE_MENU)
240240
{
241-
#ifndef WLED_DISABLE_2D // include only if 2D is compiled in
242-
oappend(PSTR("gId('2dbtn').style.display='';"));
241+
#ifdef WLED_DISABLE_2D // include only if 2D is not compiled in
242+
oappend(PSTR("gId('2dbtn').style.display='none';"));
243243
#endif
244244
#ifdef WLED_ENABLE_DMX // include only if DMX is enabled
245245
oappend(PSTR("gId('dmxbtn').style.display='';"));

0 commit comments

Comments
 (0)