From 00640e32c54c041eb9725f76d7358560c7257c78 Mon Sep 17 00:00:00 2001 From: C47D Date: Sun, 20 Oct 2024 13:21:30 -0600 Subject: [PATCH] fix(file_explorer_example) Add missing check for LV_FILE_EXPLORER_QUICK_ACCESS --- examples/others/file_explorer/lv_example_file_explorer_2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/others/file_explorer/lv_example_file_explorer_2.c b/examples/others/file_explorer/lv_example_file_explorer_2.c index 082635a6d8b3..5574f2e85c08 100644 --- a/examples/others/file_explorer/lv_example_file_explorer_2.c +++ b/examples/others/file_explorer/lv_example_file_explorer_2.c @@ -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); @@ -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