forked from enlightenment/enlightenment
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:
parent
ffef2d0770
commit
debd88b91c
|
@ -1773,7 +1773,10 @@ _conf_item_get(int *id)
|
|||
|
||||
ci = E_NEW(Config_Item, 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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue