From aead4d96b43606454c274107a1bfecba52458562 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Thu, 15 Dec 2016 16:30:41 +0900 Subject: [PATCH] e config - don't keep adding lunchers until you burst. only if not found so e config would add lunhcers forevert. i spotted 13 of them. no. just one. also make them delayed because thats pretty much what we always want. same with other config added modules. should be delayed generally. --- src/bin/e_config.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/bin/e_config.c b/src/bin/e_config.c index 0e7b75ddb..06eceef8c 100644 --- a/src/bin/e_config.c +++ b/src/bin/e_config.c @@ -1431,6 +1431,7 @@ e_config_load(void) module = E_NEW(E_Config_Module, 1); module->name = eina_stringshare_add("wireless"); module->enabled = 1; + module->delayed = 1; e_config->modules = eina_list_append(e_config->modules, module); } else if (eina_streq(em->name, "clock")) @@ -1438,6 +1439,7 @@ e_config_load(void) module = E_NEW(E_Config_Module, 1); module->name = eina_stringshare_add("time"); module->enabled = 1; + module->delayed = 1; e_config->modules = eina_list_append(e_config->modules, module); } } @@ -1460,18 +1462,19 @@ e_config_load(void) CONFIG_VERSION_UPDATE_INFO(22); EINA_LIST_FOREACH(e_config->modules, l, em) - { - if (!em->enabled) continue; - if (eina_streq(em->name, "ibar")) + { + if (!em->enabled) continue; + if (eina_streq(em->name, "ibar")) ibar_en = EINA_TRUE; - else if (eina_streq(em->name, "luncher")) + else if (eina_streq(em->name, "luncher")) luncher_en = EINA_TRUE; - } + } if (ibar_en && !luncher_en) { module = E_NEW(E_Config_Module, 1); module->name = eina_stringshare_add("luncher"); module->enabled = 1; + module->delayed = 1; e_config->modules = eina_list_append(e_config->modules, module); } }