From fc841b1876fab2031439668c5b3feb9a8b880bc8 Mon Sep 17 00:00:00 2001 From: philmoz Date: Fri, 20 Dec 2024 12:00:12 +1100 Subject: [PATCH] fix(color): cannot remove background color on 2nd panel in 2x4 layout (#5726) --- radio/src/gui/colorlcd/layouts/layout2x4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/gui/colorlcd/layouts/layout2x4.cpp b/radio/src/gui/colorlcd/layouts/layout2x4.cpp index 12f36603900..1f796d29025 100644 --- a/radio/src/gui/colorlcd/layouts/layout2x4.cpp +++ b/radio/src/gui/colorlcd/layouts/layout2x4.cpp @@ -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