config: add error message if config is from a new Terminology

Also mark it as temporary
This commit is contained in:
Boris Faure 2019-11-12 10:57:01 +01:00
parent b327ff2f19
commit 2a02a03625
1 changed files with 4 additions and 2 deletions

View File

@ -736,10 +736,12 @@ config_load(void)
if (config->version < CONF_VER)
{
// currently no upgrade path so reset config.
ERR("config is from a newer Terminology, discard it");
config_del(config);
config = NULL;
config = config_new();
config->temporary = EINA_TRUE;
}
/* do no thing in case the config is from a newer
/* do nothing in case the config is from a newer
* terminology, we don't want to remove it. */
}
}