Don't store Hidden elements in utils cache

Hidden elements should never be returned to the user, they are "Deleted"

SVN revision: 55405
This commit is contained in:
Sebastian Dransfeld 2010-12-09 12:19:00 +00:00
parent 30099cb45f
commit 3a0af7b9c5
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ cache_add(const char *path, const char *file_id, int priority __UNUSED__, int *c
/* TODO: We should check priority, and not just hope we search in right order */
/* TODO: We need to find out if prioritized file id has changed because of
* changed search order. */
if (desk->type == EFREET_DESKTOP_TYPE_APPLICATION &&
if (!desk->hidden && desk->type == EFREET_DESKTOP_TYPE_APPLICATION &&
file_id && !eina_hash_find(file_ids, file_id))
{
int id;