Skip to content

Commit 1f9465e

Browse files
authored
Merge pull request #456 from Master92/single_dvr_navigation
Fix disappearing navigation box when only one DVR is present
2 parents f933c77 + 34a19b2 commit 1f9465e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ui/page_playback.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@ static void update_page() {
325325
}
326326

327327
static void update_item(uint8_t cur_pos, uint8_t lst_pos) {
328+
if (cur_pos == lst_pos) {
329+
return;
330+
}
331+
328332
lv_obj_clear_flag(pb_ui[cur_pos]._arrow, LV_OBJ_FLAG_HIDDEN);
329333
lv_obj_remove_style(pb_ui[cur_pos]._img, &style_pb_dark, LV_PART_MAIN);
330334
lv_obj_add_style(pb_ui[cur_pos]._img, &style_pb, LV_PART_MAIN);

0 commit comments

Comments
 (0)