Skip to content

Commit

Permalink
fix(file_explorer): fix the problem that the rows and columns obtaine…
Browse files Browse the repository at this point in the history
…d are uncertain

Because of the problems encountered when using keys, LV_EVENT_VALUE_CHANGEDis actually triggered after LV_EVENT_CLICKED , and the rollback is performed here, regardless of the use of keys.
  • Loading branch information
YobeZhou authored Nov 21, 2022
1 parent b65293a commit c0d0064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lv_100ask_file_explorer/lv_100ask_file_explorer.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ static void brower_file_event_handler(lv_event_t * e)

lv_100ask_file_explorer_t * explorer = (lv_100ask_file_explorer_t *)obj;

if(code == LV_EVENT_CLICKED) {
if(code == LV_EVENT_VALUE_CHANGED) {
//struct stat stat_buf;
char * file_name[LV_100ASK_FILE_EXPLORER_PATH_MAX_LEN];
char * str_fn = NULL;
Expand Down

0 comments on commit c0d0064

Please sign in to comment.