From d709b69a3cb5bfa8c7d09c6641bcfe83c6636882 Mon Sep 17 00:00:00 2001 From: Risto Date: Sun, 6 Jun 2021 18:06:17 +0200 Subject: [PATCH] resolves #141 --- radio/src/opentx.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 6b735cb0a..079ec1f50 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -1514,6 +1514,9 @@ void opentxClose(uint8_t shutdown) #if defined(COLORLCD) MainWindow::instance()->deleteChildren(); + // this is necessary as the custom screens are not deleted + // by using deleteCustomScreens(), but here through it's parent window + memset(customScreens, 0, sizeof(customScreens)); //TODO: In fact we want only to empty the trash (private method) MainWindow::instance()->run();