Skip to content

Commit 4ec49bd

Browse files
committed
CheckBoxList : rename newValue -> value.
1 parent cf8b422 commit 4ec49bd

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/displayapp/screens/CheckboxList.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ CheckboxList::CheckboxList(const uint8_t screenID,
2222
: Screen(app),
2323
screenID {screenID},
2424
OnValueChanged{std::move(OnValueChanged)},
25-
options {options},
26-
newValue{originalValue} {
25+
options {options}, value {originalValue} {
2726
// Set the background to Black
2827
lv_obj_set_style_local_bg_color(lv_scr_act(), LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_BLACK);
2928

@@ -92,7 +91,7 @@ CheckboxList::CheckboxList(const uint8_t screenID,
9291

9392
CheckboxList::~CheckboxList() {
9493
lv_obj_clean(lv_scr_act());
95-
OnValueChanged(newValue);
94+
OnValueChanged(value);
9695
}
9796

9897
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) {
101100
if (strcmp(options[i], "")) {
102101
if (object == cbOption[i]) {
103102
lv_checkbox_set_checked(cbOption[i], true);
104-
newValue = MaxItems * screenID + i;
103+
value = MaxItems * screenID + i;
105104
} else {
106105
lv_checkbox_set_checked(cbOption[i], false);
107106
}

src/displayapp/screens/CheckboxList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace Pinetime {
3434
std::array<lv_point_t, 2> pageIndicatorPoints;
3535
lv_obj_t* pageIndicatorBase;
3636
lv_obj_t* pageIndicator;
37-
uint32_t newValue;
37+
uint32_t value;
3838
};
3939
}
4040
}

0 commit comments

Comments
 (0)