fix(file_explorer): fix navigation handling (#7124)
Co-authored-by: Liam <30486941+liamHowatt@users.noreply.github.com>
This commit is contained in:
@@ -19,6 +19,7 @@ static void file_explorer_event_handler(lv_event_t * e)
|
||||
}
|
||||
}
|
||||
|
||||
#if LV_FILE_EXPLORER_QUICK_ACCESS
|
||||
static void btn_event_handler(lv_event_t * e)
|
||||
{
|
||||
lv_event_code_t code = lv_event_get_code(e);
|
||||
@@ -50,6 +51,7 @@ static void dd_event_handler(lv_event_t * e)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void lv_example_file_explorer_2(void)
|
||||
{
|
||||
@@ -100,6 +102,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 +130,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
|
||||
|
||||
Reference in New Issue
Block a user