From debd88b91cc94d41e2d9e53f1c121c2b8adada3f Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 1 Nov 2016 13:01:51 -0400 Subject: [PATCH] do not create new luncher cfg id for demo gadgets -1 indicates a temporary gadget which should not be saved --- src/modules/luncher/bar.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/luncher/bar.c b/src/modules/luncher/bar.c index 2488031b3..29642829d 100644 --- a/src/modules/luncher/bar.c +++ b/src/modules/luncher/bar.c @@ -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);