diff --git a/wled00/cfg.cpp b/wled00/cfg.cpp index e36b2f61d..51806ca56 100644 --- a/wled00/cfg.cpp +++ b/wled00/cfg.cpp @@ -31,9 +31,7 @@ bool deserializeConfig(JsonObject doc, bool fromFS) { getStringFromJson(cmDNS, id[F("mdns")], 33); getStringFromJson(serverDescription, id[F("name")], 33); getStringFromJson(alexaInvocationName, id[F("inv")], 33); -#ifdef WLED_ENABLE_SIMPLE_UI CJSON(simplifiedUI, id[F("sui")]); -#endif JsonObject nw = doc["nw"]; #ifndef WLED_DISABLE_ESPNOW @@ -656,9 +654,7 @@ void serializeConfig() { id[F("mdns")] = cmDNS; id[F("name")] = serverDescription; id[F("inv")] = alexaInvocationName; -#ifdef WLED_ENABLE_SIMPLE_UI id[F("sui")] = simplifiedUI; -#endif JsonObject nw = doc.createNestedObject("nw"); #ifndef WLED_DISABLE_ESPNOW diff --git a/wled00/data/settings_ui.htm b/wled00/data/settings_ui.htm index d56199e2d..ba84a77d8 100644 --- a/wled00/data/settings_ui.htm +++ b/wled00/data/settings_ui.htm @@ -267,10 +267,7 @@

Web Setup

Server description:
-
- This firmware build does not include simplified UI support.
-
-
Enable simplified UI:
+ Enable simplified UI:
The following UI customization settings are unique both to the WLED device and this browser.
You will need to set them again if using a different browser, device or WLED IP address.
Refresh the main UI to apply changes.

diff --git a/wled00/set.cpp b/wled00/set.cpp index a12ecd30b..ab830a97c 100644 --- a/wled00/set.cpp +++ b/wled00/set.cpp @@ -296,13 +296,7 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage) { strlcpy(serverDescription, request->arg(F("DS")).c_str(), 33); //syncToggleReceive = request->hasArg(F("ST")); - #ifdef WLED_ENABLE_SIMPLE_UI - if (simplifiedUI ^ request->hasArg(F("SU"))) { - // UI selection changed, invalidate browser cache - cacheInvalidate++; - } simplifiedUI = request->hasArg(F("SU")); - #endif DEBUG_PRINTLN(F("Enumerating ledmaps")); enumerateLedmaps(); DEBUG_PRINTLN(F("Loading custom palettes")); diff --git a/wled00/wled.h b/wled00/wled.h index 7690679f2..25be2c9ec 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -365,7 +365,7 @@ WLED_GLOBAL char serverDescription[33] _INIT(SERVERNAME); // use predefined nam #endif //WLED_GLOBAL bool syncToggleReceive _INIT(false); // UIs which only have a single button for sync should toggle send+receive if this is true, only send otherwise WLED_GLOBAL bool simplifiedUI _INIT(false); // enable simplified UI -WLED_GLOBAL byte cacheInvalidate _INIT(0); // used to invalidate browser cache when switching from regular to simplified UI +WLED_GLOBAL byte cacheInvalidate _INIT(0); // used to invalidate browser cache // Sync CONFIG WLED_GLOBAL NodesMap Nodes; diff --git a/wled00/xml.cpp b/wled00/xml.cpp index c5bae5805..9a7fc4acd 100644 --- a/wled00/xml.cpp +++ b/wled00/xml.cpp @@ -475,11 +475,7 @@ void getSettingsJS(byte subPage, char* dest) { sappends('s',SET_F("DS"),serverDescription); //sappend('c',SET_F("ST"),syncToggleReceive); - #ifdef WLED_ENABLE_SIMPLE_UI sappend('c',SET_F("SU"),simplifiedUI); - #else - oappend(SET_F("toggle('Simple');")); // hide Simplified UI settings - #endif } if (subPage == SUBPAGE_SYNC)