summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/CheckboxList.cpp
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2023-01-03 17:09:59 +0200
committerRiku Isokoski <riksu9000@gmail.com>2023-01-12 22:02:32 +0200
commit3c9b3435a55b201ef29e50ba2c43cfe500a90a55 (patch)
treeec2bc6ea6bc912aa74e9e574a163a28a850336b0 /src/displayapp/screens/CheckboxList.cpp
parent96165a8541b33baace920e26f062b2e282d644c6 (diff)
SetingTimeFormat use CheckboxList, reduce duplication
Diffstat (limited to 'src/displayapp/screens/CheckboxList.cpp')
-rw-r--r--src/displayapp/screens/CheckboxList.cpp4
1 files changed, 3 insertions, 1 deletions
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);