fix(color): radio Lua override settings for customisable switches not saved to yaml file (#6955)
This commit is contained in:
@@ -133,11 +133,11 @@ class RadioFunctionSwitch : public Window
|
|||||||
overrideLabel = new StaticText(this, {OVRLBL_X, C1_Y + EdgeTxStyles::UI_ELEMENT_HEIGHT + PAD_LARGE, OVRLBL_W, 0},
|
overrideLabel = new StaticText(this, {OVRLBL_X, C1_Y + EdgeTxStyles::UI_ELEMENT_HEIGHT + PAD_LARGE, OVRLBL_W, 0},
|
||||||
STR_LUA_OVERRIDE, COLOR_THEME_PRIMARY1_INDEX, FONT(XS) | RIGHT);
|
STR_LUA_OVERRIDE, COLOR_THEME_PRIMARY1_INDEX, FONT(XS) | RIGHT);
|
||||||
offOverride = new ToggleSwitch(this, {OVROFF_X, C1_Y + EdgeTxStyles::UI_ELEMENT_HEIGHT + PAD_OUTLINE, 0, 0},
|
offOverride = new ToggleSwitch(this, {OVROFF_X, C1_Y + EdgeTxStyles::UI_ELEMENT_HEIGHT + PAD_OUTLINE, 0, 0},
|
||||||
[=]() { return g_model.cfsOffColorLuaOverride(switchIndex); },
|
[=]() { return g_eeGeneral.cfsOffColorLuaOverride(switchIndex); },
|
||||||
[=](bool v) { g_model.cfsSetOffColorLuaOverride(switchIndex, v); });
|
[=](bool v) { g_eeGeneral.cfsSetOffColorLuaOverride(switchIndex, v); });
|
||||||
onOverride = new ToggleSwitch(this, {C2_X, C1_Y + EdgeTxStyles::UI_ELEMENT_HEIGHT + PAD_OUTLINE, 0, 0},
|
onOverride = new ToggleSwitch(this, {C2_X, C1_Y + EdgeTxStyles::UI_ELEMENT_HEIGHT + PAD_OUTLINE, 0, 0},
|
||||||
[=]() { return g_model.cfsOnColorLuaOverride(switchIndex); },
|
[=]() { return g_eeGeneral.cfsOnColorLuaOverride(switchIndex); },
|
||||||
[=](bool v) { g_model.cfsSetOnColorLuaOverride(switchIndex, v); });
|
[=](bool v) { g_eeGeneral.cfsSetOnColorLuaOverride(switchIndex, v); });
|
||||||
#endif //FUNCTION_SWITCHES_RGB_LEDS
|
#endif //FUNCTION_SWITCHES_RGB_LEDS
|
||||||
|
|
||||||
setState();
|
setState();
|
||||||
|
|||||||
Reference in New Issue
Block a user