forked from enlightenment/enlightenment
efm no longer restores non-default desktop paths if desktop navigation option is disabled
ticket #1835 SVN revision: 79680
This commit is contained in:
parent
20efaa2d66
commit
90ab501433
|
@ -407,21 +407,26 @@ e_mod_fileman_path_find(E_Zone *zone)
|
||||||
{
|
{
|
||||||
Eina_List *l;
|
Eina_List *l;
|
||||||
Fileman_Path *path;
|
Fileman_Path *path;
|
||||||
char buf[256];
|
|
||||||
|
|
||||||
EINA_LIST_FOREACH(fileman_config->paths, l, path)
|
EINA_LIST_FOREACH(fileman_config->paths, l, path)
|
||||||
if (path->zone == zone->container->num + zone->num) return path;
|
if (path->zone == zone->container->num + zone->num) break;
|
||||||
path = E_NEW(Fileman_Path, 1);
|
if (l && fileman_config->view.desktop_navigation) return path;
|
||||||
path->zone = zone->container->num + zone->num;
|
if (l)
|
||||||
path->dev = eina_stringshare_add("desktop");
|
{
|
||||||
|
eina_stringshare_replace(&path->path, NULL);
|
||||||
|
eina_stringshare_replace(&path->dev, NULL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
path = E_NEW(Fileman_Path, 1);
|
||||||
|
path->zone = zone->container->num + zone->num;
|
||||||
|
path->dev = eina_stringshare_add("desktop");
|
||||||
|
fileman_config->paths = eina_list_append(fileman_config->paths, path);
|
||||||
|
}
|
||||||
path->desktop_mode = E_FM2_VIEW_MODE_CUSTOM_ICONS;
|
path->desktop_mode = E_FM2_VIEW_MODE_CUSTOM_ICONS;
|
||||||
if ((zone->container->num == 0) && (zone->num == 0))
|
if ((zone->container->num == 0) && (zone->num == 0))
|
||||||
path->path = eina_stringshare_add("/");
|
path->path = eina_stringshare_add("/");
|
||||||
else
|
else
|
||||||
{
|
path->path = eina_stringshare_printf("%d", (zone->container->num + zone->num));
|
||||||
snprintf(buf, sizeof(buf), "%i", (zone->container->num + zone->num));
|
|
||||||
path->path = eina_stringshare_add(buf);
|
|
||||||
}
|
|
||||||
fileman_config->paths = eina_list_append(fileman_config->paths, path);
|
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue