From 153d0bd1e63dfb22b931b858b9d2286d1695f243 Mon Sep 17 00:00:00 2001 From: Ningyuan Li Date: Mon, 18 Mar 2024 13:03:28 +0900 Subject: [PATCH] fixed repeated input when ui gets reopened --- src/app/ui/ui_input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/ui/ui_input.c b/src/app/ui/ui_input.c index d11a7bcb0..1d3c1ee6b 100644 --- a/src/app/ui/ui_input.c +++ b/src/app/ui/ui_input.c @@ -42,6 +42,11 @@ void app_ui_input_init(app_ui_input_t *input, app_ui_t *ui) { } void app_ui_input_deinit(app_ui_input_t *input) { + lv_indev_delete(input->key.indev); + lv_indev_delete(input->pointer.indev); + lv_indev_delete(input->wheel.indev); + lv_indev_delete(input->button.indev); + _lv_ll_clear(&input->modal_groups); }