From fc4babfb4e163e2f9caa056c4b9b59e705dd8b41 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Mon, 9 May 2022 10:18:19 +0200 Subject: [PATCH] choice: send LV_EVENT_VALUE_CHANGED on setValue() --- radio/src/thirdparty/libopenui/src/choice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radio/src/thirdparty/libopenui/src/choice.cpp b/radio/src/thirdparty/libopenui/src/choice.cpp index 9c7cdcf52..f17d47a1e 100644 --- a/radio/src/thirdparty/libopenui/src/choice.cpp +++ b/radio/src/thirdparty/libopenui/src/choice.cpp @@ -209,16 +209,19 @@ void Choice::openMenu() if (textHandler) { menu->addLine(textHandler(i), [=]() { setValue(i); + lv_event_send(lvobj, LV_EVENT_VALUE_CHANGED, nullptr); }); } else if (unsigned(i - vmin) < values.size()) { menu->addLine(values[i - vmin], [=]() { setValue(i); + lv_event_send(lvobj, LV_EVENT_VALUE_CHANGED, nullptr); }); } else { menu->addLine(std::to_string(i), [=]() { setValue(i); + lv_event_send(lvobj, LV_EVENT_VALUE_CHANGED, nullptr); }); } if (value == i) {