From 3c9b3435a55b201ef29e50ba2c43cfe500a90a55 Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Tue, 3 Jan 2023 17:09:59 +0200 Subject: SetingTimeFormat use CheckboxList, reduce duplication --- src/displayapp/screens/CheckboxList.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/displayapp/screens/CheckboxList.cpp') diff --git a/src/displayapp/screens/CheckboxList.cpp b/src/displayapp/screens/CheckboxList.cpp index c189b075..928b2e61 100644 --- a/src/displayapp/screens/CheckboxList.cpp +++ b/src/displayapp/screens/CheckboxList.cpp @@ -28,7 +28,9 @@ CheckboxList::CheckboxList(const uint8_t screenID, // Set the background to Black lv_obj_set_style_local_bg_color(lv_scr_act(), LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_BLACK); - pageIndicator.Create(); + if (numScreens > 1) { + pageIndicator.Create(); + } lv_obj_t* container1 = lv_cont_create(lv_scr_act(), nullptr); -- cgit v1.2.3-70-g09d2