welcome: clear templates on welcome.

If we go back we should clear our examples to avoid an ever-
growing list.
This commit is contained in:
Alastair Poole 2020-03-06 22:04:51 +00:00
parent 879ed821fe
commit d81ec35efe
1 changed files with 3 additions and 0 deletions

View File

@ -620,6 +620,9 @@ _edi_welcome_project_new_cb(void *data, Evas_Object *obj EINA_UNUSED, void *even
EINA_LIST_FREE(_available_templates, template)
_edi_template_free(template);
EINA_LIST_FREE(_available_examples, template)
_edi_template_free(template);
_edi_templates_discover(PACKAGE_DATA_DIR "/templates");
_edi_examples_discover(PACKAGE_DATA_DIR "/examples");