From 1cfb9985fb995332d2cef3fc1902d1de3252d0e1 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Wed, 20 Jul 2016 19:43:47 +0900 Subject: [PATCH] file_browser: skip folder items if their names are started with . On the linux system, A folder, which name is started with . is intended hidden folders. So skip appending them in default. --- src/bin/file_browser.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/bin/file_browser.c b/src/bin/file_browser.c index 7e7835b..e2d6839 100644 --- a/src/bin/file_browser.c +++ b/src/bin/file_browser.c @@ -315,9 +315,13 @@ gl_expanded_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info) brows_file *sub_file = NULL; EINA_LIST_FOREACH(file->sub_file_list, l, sub_file) { - if (!elm_check_state_get(bd->show_all_check) && - (sub_file->type == FILE_BROWSER_FILE_TYPE_OTHERS)) - continue; + if (!elm_check_state_get(bd->show_all_check)) + { + //Skip if the file name is started with "." + if ((sub_file->type == FILE_BROWSER_FILE_TYPE_OTHERS) || + (sub_file->name[0] == '.')) + continue; + } Elm_Genlist_Item_Type type = ELM_GENLIST_ITEM_NONE; if (sub_file->type == FILE_BROWSER_FILE_TYPE_DIR)