Reload LUA widgets before resuming the UI
This commit is contained in:
@@ -1521,6 +1521,7 @@ void opentxClose(uint8_t shutdown)
|
|||||||
|
|
||||||
luaUnregisterWidgets();
|
luaUnregisterWidgets();
|
||||||
luaClose(&lsWidgets);
|
luaClose(&lsWidgets);
|
||||||
|
lsWidgets = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SDCARD)
|
#if defined(SDCARD)
|
||||||
@@ -1534,6 +1535,11 @@ void opentxResume()
|
|||||||
TRACE("opentxResume");
|
TRACE("opentxResume");
|
||||||
|
|
||||||
sdMount();
|
sdMount();
|
||||||
|
#if defined(COLORLCD)
|
||||||
|
// reload widgets
|
||||||
|
luaInitThemesAndWidgets();
|
||||||
|
#endif
|
||||||
|
|
||||||
storageReadAll();
|
storageReadAll();
|
||||||
|
|
||||||
#if defined(COLORLCD)
|
#if defined(COLORLCD)
|
||||||
|
|||||||
Reference in New Issue
Block a user