Skip to content

Commit

Permalink
fix(ui): 'Add trims to subtrims' btn on the Outputs page wasn't updat…
Browse files Browse the repository at this point in the history
…ing display
  • Loading branch information
philmoz authored and pfeerick committed Dec 23, 2022
1 parent fdcf7cf commit 159a522
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion radio/src/gui/colorlcd/model_outputs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 159a522

Please sign in to comment.