Skip to content

Commit

Permalink
fix(file_explorer_example) Add missing check for LV_FILE_EXPLORER_QUI…
Browse files Browse the repository at this point in the history
…CK_ACCESS
  • Loading branch information
C47D committed Oct 20, 2024
1 parent 0efa5f3 commit 00640e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/others/file_explorer/lv_example_file_explorer_2.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ void lv_example_file_explorer_2(void)

lv_obj_add_event_cb(file_explorer, file_explorer_event_handler, LV_EVENT_ALL, NULL);

#if LV_FILE_EXPLORER_QUICK_ACCESS
/*Quick access status control button*/
lv_obj_t * fe_quick_access_obj = lv_file_explorer_get_quick_access_area(file_explorer);
lv_obj_t * fe_header_obj = lv_file_explorer_get_header(file_explorer);
Expand Down Expand Up @@ -127,6 +128,7 @@ void lv_example_file_explorer_2(void)
lv_obj_align(dd, LV_ALIGN_RIGHT_MID, 0, 0);

lv_obj_add_event_cb(dd, dd_event_handler, LV_EVENT_VALUE_CHANGED, file_explorer);
#endif
}

#endif

0 comments on commit 00640e3

Please sign in to comment.