summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/CheckboxList.cpp
diff options
context:
space:
mode:
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);