Reload LUA widgets before resuming the UI

This commit is contained in:
Raphael Coeffic
2021-06-12 07:52:20 +02:00
parent 78915daf95
commit c28f61c646
+6
View File
@@ -1521,6 +1521,7 @@ void opentxClose(uint8_t shutdown)
luaUnregisterWidgets();
luaClose(&lsWidgets);
lsWidgets = 0;
#endif
#if defined(SDCARD)
@@ -1534,6 +1535,11 @@ void opentxResume()
TRACE("opentxResume");
sdMount();
#if defined(COLORLCD)
// reload widgets
luaInitThemesAndWidgets();
#endif
storageReadAll();
#if defined(COLORLCD)