From 4ec49bde8a8cce78b8b72c978b3e3b1d529cef48 Mon Sep 17 00:00:00 2001 From: Jean-François Milants Date: Tue, 11 Oct 2022 21:02:05 +0200 Subject: CheckBoxList : rename newValue -> value. --- src/displayapp/screens/CheckboxList.cpp | 7 +++---- src/displayapp/screens/CheckboxList.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/displayapp/screens/CheckboxList.cpp b/src/displayapp/screens/CheckboxList.cpp index 42f9f57d..3d84166c 100644 --- a/src/displayapp/screens/CheckboxList.cpp +++ b/src/displayapp/screens/CheckboxList.cpp @@ -22,8 +22,7 @@ CheckboxList::CheckboxList(const uint8_t screenID, : Screen(app), screenID {screenID}, OnValueChanged{std::move(OnValueChanged)}, - options {options}, - newValue{originalValue} { + options {options}, value {originalValue} { // 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); @@ -92,7 +91,7 @@ CheckboxList::CheckboxList(const uint8_t screenID, CheckboxList::~CheckboxList() { lv_obj_clean(lv_scr_act()); - OnValueChanged(newValue); + OnValueChanged(value); } void CheckboxList::UpdateSelected(lv_obj_t* object, lv_event_t event) { @@ -101,7 +100,7 @@ void CheckboxList::UpdateSelected(lv_obj_t* object, lv_event_t event) { if (strcmp(options[i], "")) { if (object == cbOption[i]) { lv_checkbox_set_checked(cbOption[i], true); - newValue = MaxItems * screenID + i; + value = MaxItems * screenID + i; } else { lv_checkbox_set_checked(cbOption[i], false); } diff --git a/src/displayapp/screens/CheckboxList.h b/src/displayapp/screens/CheckboxList.h index 4d27a62b..1bdb89d2 100644 --- a/src/displayapp/screens/CheckboxList.h +++ b/src/displayapp/screens/CheckboxList.h @@ -34,7 +34,7 @@ namespace Pinetime { std::array pageIndicatorPoints; lv_obj_t* pageIndicatorBase; lv_obj_t* pageIndicator; - uint32_t newValue; + uint32_t value; }; } } -- cgit v1.2.3