feat: allow Sticky LS state to persist across EM or optionally across reboot (#4978)

This commit is contained in:
philmoz
2024-06-02 16:22:36 +10:00
committed by GitHub
parent 0399858a76
commit b16524837a
26 changed files with 121 additions and 46 deletions
@@ -245,6 +245,13 @@ class LogicalSwitchEditPage : public Page
return formatNumberAsString(value, PREC1, 0, nullptr, "s");
});
}
// Sticky persist
if (cstate == LS_FAMILY_STICKY) {
line = logicalSwitchOneWindow->newLine(grid);
new StaticText(line, rect_t{}, STR_PERSISTENT);
new ToggleSwitch(line, rect_t{}, GET_SET_DEFAULT(cs->lsPersist));
}
}
void buildBody(Window* window)