fix(ui): 'Add trims to subtrims' btn on the Outputs page wasn't updating display

This commit is contained in:
philmoz
2022-12-20 20:56:12 +10:00
committed by GitHub
parent 2133d42bd2
commit 4841f0673c
+6 -1
View File
@@ -83,7 +83,12 @@ class OutputLineButton : public ListLineButton
{
lv_obj_t* target = lv_event_get_target(e);
auto line = (OutputLineButton*)lv_obj_get_user_data(target);
if (line && !line->init) line->delayed_init(e);
if (line) {
if (!line->init)
line->delayed_init(e);
else
line->refresh();
}
}
void delayed_init(lv_event_t* e)