Is there an existing issue for this problem?
What part of EdgeTX is the focus of this bug?
Simulator
Current Behavior
simuLuaReloadPermanentScripts() reloads only the the tools and I think telemetry scripts.
We could do something like like this:
void simuLuaReloadWidgets()
{
#if defined(LUA) && defined(COLORLCD)
luaUnregisterWidgets();
luaClose(&lsWidgets);
luaInitThemesAndWidgets();
LayoutFactory::deleteCustomScreens();
LayoutFactory::loadCustomScreens();
#endif
}
And call it in:
void simuLuaReloadPermanentScripts()
{
#if defined(LUA)
simuLuaReloadWidgets();
luaState = INTERPRETER_RELOAD_PERMANENT_SCRIPTS;
#endif
}
Or introduce another wasm method simuLuaReloadWidgets().
This is targeting mainly #7164.
Expected Behavior
"Reload lua scripts" command reloads widgets in simulator too.
Steps To Reproduce
Version
Nightly (Please give date/commit below)
Transmitter
RadioMaster TX16S MK3
Operating System (OS)
No response
OS Version
No response
Anything else?
No response
Is there an existing issue for this problem?
What part of EdgeTX is the focus of this bug?
Simulator
Current Behavior
simuLuaReloadPermanentScripts()reloads only the the tools and I think telemetry scripts.We could do something like like this:
And call it in:
Or introduce another wasm method
simuLuaReloadWidgets().This is targeting mainly #7164.
Expected Behavior
"Reload lua scripts" command reloads widgets in simulator too.
Steps To Reproduce
Version
Nightly (Please give date/commit below)
Transmitter
RadioMaster TX16S MK3
Operating System (OS)
No response
OS Version
No response
Anything else?
No response