fix(firmware): radio may crash after editing a number or text field in a popup dialog (#7115)

This commit is contained in:
philmoz
2026-02-22 10:07:12 +10:00
committed by GitHub
parent 653a2013ea
commit 4a8ed1af20
2 changed files with 9 additions and 0 deletions
@@ -102,6 +102,13 @@ Keyboard::~Keyboard()
if (group) lv_group_del(group);
}
void Keyboard::deleteLater()
{
if (!_deleted)
hide(false);
NavWindow::deleteLater();
}
void Keyboard::clearField(bool wasCancelled)
{
TRACE("CLEAR FIELD");
@@ -36,6 +36,8 @@ class Keyboard : public NavWindow
protected:
static Keyboard *activeKeyboard;
void deleteLater() override;
lv_group_t* group = nullptr;
lv_obj_t* keyboard = nullptr;