From c28f61c646215feca3b757520a5eaea4aba53c39 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sat, 12 Jun 2021 07:52:20 +0200 Subject: [PATCH] Reload LUA widgets before resuming the UI --- radio/src/opentx.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 4d8cf4d76..923ebb6a0 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -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)