From 7a084b8214a3ea4c70e7fe9551905b52611a5cb8 Mon Sep 17 00:00:00 2001 From: Lukasz Mastalerz Date: Mon, 8 May 2023 15:43:23 +0200 Subject: [PATCH] [CP-1974] Deleting all templates leaves some text on pure screen Fixed Template window clearing after all templates are removed. --- .../application-messages/windows/SMSTemplatesWindow.cpp | 4 ++++ pure_changelog.md | 1 + 2 files changed, 5 insertions(+) diff --git a/module-apps/application-messages/windows/SMSTemplatesWindow.cpp b/module-apps/application-messages/windows/SMSTemplatesWindow.cpp index 05ee27327c1eb3af9ec8d786acd86e3d9890ae24..319e5538822215170479001d00f8b1a06cac58fa 100644 --- a/module-apps/application-messages/windows/SMSTemplatesWindow.cpp +++ b/module-apps/application-messages/windows/SMSTemplatesWindow.cpp @@ -108,6 +108,10 @@ namespace gui list->rebuildList(); } + if (list->isEmpty()) { + list->clear(); + } + navBar->setActive(nav_bar::Side::Center, !list->isEmpty()); emptyListIcon->setVisible(list->isEmpty()); diff --git a/pure_changelog.md b/pure_changelog.md index c00596a210b4e5191330203671972214e9acbd6d..c904185a77f1f4eb9228fad6ad9e558583580f07 100644 --- a/pure_changelog.md +++ b/pure_changelog.md @@ -39,6 +39,7 @@ * Fixed problem with an unresponsive device after playing specific WAV files. * Fixed unresponsive Templates window for user input after templates were changed via MC. * Fixed USB charging port detection. +* Fixed Template window clearing after all templates are removed. ## [1.7.0 2023-03-23] ### Changed / Improved