do not create new luncher cfg id for demo gadgets

-1 indicates a temporary gadget which should not be saved
This commit is contained in:
Mike Blumenkrantz 2016-11-01 13:01:51 -04:00
parent ffef2d0770
commit debd88b91c
1 changed files with 5 additions and 2 deletions

View File

@ -1772,8 +1772,11 @@ _conf_item_get(int *id)
}
ci = E_NEW(Config_Item, 1);
ci->id = eina_list_count(luncher_config->items)+1;
if (*id != -1)
ci->id = eina_list_count(luncher_config->items)+1;
else
ci->id = -1;
ci->dir = eina_stringshare_add("default");
luncher_config->items = eina_list_append(luncher_config->items, ci);