Skip to content

Commit

Permalink
fix(color): cannot remove background color on 2nd panel in 2x4 layout (
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz authored Dec 20, 2024
1 parent d1936d0 commit fc841b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/gui/colorlcd/layouts/layout2x4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class Layout2x4 : public Layout
lv_obj_add_flag(panel1, LV_OBJ_FLAG_HIDDEN);
}
vis = getOptionValue(OPTION_PANEL2_BACKGROUND)->boolValue;
if (vis != lv_obj_has_flag(panel2, LV_OBJ_FLAG_HIDDEN)) {
if (vis == lv_obj_has_flag(panel2, LV_OBJ_FLAG_HIDDEN)) {
if (vis)
lv_obj_clear_flag(panel2, LV_OBJ_FLAG_HIDDEN);
else
Expand Down

0 comments on commit fc841b1

Please sign in to comment.