Skip to content

Commit 9851ed3

Browse files
committed
Fix potential edge case of sidebar being set black
1 parent 639fd3a commit 9851ed3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/displayapp/screens/settings/SettingPineTimeStyle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ void SettingPineTimeStyle::UpdateSelected(lv_obj_t* object, lv_event_t event) {
310310
randBG += 1;
311311
}
312312
if (randBar == 3) {
313-
randBar = randTime;
313+
randBar -= 1;
314314
}
315315
settingsController.SetPTSColorTime(randTime);
316316
lv_obj_set_style_local_text_color(timeDD1, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, pts_colors[randTime]);

0 commit comments

Comments
 (0)