forked from enlightenment/edi
filepanel: fix bug that unable to expand again
Summary: When directory is contracted, hash data still remained. In order to expand again, it is needed to delete hash data of subitems when contracted Test Plan: 1. Open project. 2. Expand directory 3. Contract directory 4. Expand directory again 5. check that works fine Reviewers: ajwillia.ms Reviewed By: ajwillia.ms Differential Revision: https://phab.enlightenment.org/D4634
This commit is contained in:
parent
378d4c763f
commit
b73f04cba3
|
@ -434,8 +434,18 @@ _ls_error_cb(void *data, Eio_File *handler EINA_UNUSED, int error EINA_UNUSED)
|
|||
static void
|
||||
_file_listing_empty(Edi_Dir_Data *dir, Elm_Object_Item *parent_it)
|
||||
{
|
||||
const Eina_List *list, *l;
|
||||
Elm_Object_Item *subit;
|
||||
Edi_Dir_Data *subdir;
|
||||
|
||||
if (dir->monitor) eio_monitor_del(dir->monitor);
|
||||
|
||||
list = elm_genlist_item_subitems_get(parent_it);
|
||||
EINA_LIST_FOREACH(list, l, subit)
|
||||
{
|
||||
subdir = elm_object_item_data_get(subit);
|
||||
eina_hash_del(_list_items, subdir->path, NULL);
|
||||
}
|
||||
elm_genlist_item_subitems_clear(parent_it);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue