fix Custom Effect button missing in action
This commit is contained in:
@@ -133,13 +133,13 @@ class CustomEffectsUserMod : public Usermod {
|
||||
*/
|
||||
void addToJsonState(JsonObject& root)
|
||||
{
|
||||
// //root["user0"] = userVar0;
|
||||
// if (!initDone) return; // prevent crash on boot applyPreset()
|
||||
// JsonObject usermod = root[FPSTR(_name)];
|
||||
// if (usermod.isNull()) {
|
||||
// usermod = root.createNestedObject(FPSTR(_name));
|
||||
// }
|
||||
// usermod["on"] = enabled;
|
||||
//root["user0"] = userVar0;
|
||||
if (!initDone) return; // prevent crash on boot applyPreset()
|
||||
JsonObject usermod = root[FPSTR(_name)];
|
||||
if (usermod.isNull()) {
|
||||
usermod = root.createNestedObject(FPSTR(_name));
|
||||
}
|
||||
usermod["on"] = enabled;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1037,6 +1037,7 @@ class FourLineDisplayUsermod : public Usermod {
|
||||
|
||||
void appendConfigData() {
|
||||
oappend(SET_F("addInfo('4LineDisplay:help',0,'<button onclick=\"location.href="https://mm.kno.wled.ge/usermods/4LineDisplay"\" type=\"button\">?</button>');")); // 0 is field type, 1 is actual field
|
||||
|
||||
oappend(SET_F("dd=addDropdown('4LineDisplay','type');"));
|
||||
oappend(SET_F("addOption(dd,'None',0);"));
|
||||
oappend(SET_F("addOption(dd,'SSD1306',1);"));
|
||||
|
||||
Reference in New Issue
Block a user