welcome: Fix issue when create fails.

Small fixes.
This commit is contained in:
Alastair Poole 2020-01-24 20:57:32 +00:00
parent 7e5e4e28a7
commit 4917715006
2 changed files with 9 additions and 11 deletions

View File

@ -347,12 +347,16 @@ _edi_welcome_project_new_create_cb(void *data EINA_UNUSED, Evas_Object *obj EINA
if (path && path[0] && name && name[0]) if (path && path[0] && name && name[0])
{ {
if (!template->is_template) if (!template->is_template)
{
edi_create_example(template->path, path, name, edi_create_example(template->path, path, name,
_edi_welcome_project_new_create_done_cb); _edi_welcome_project_new_create_done_cb);
}
else else
{
edi_create_project(template->path, path, name, url, user, email, edi_create_project(template->path, path, name, url, user, email,
_edi_welcome_project_new_create_done_cb); _edi_welcome_project_new_create_done_cb);
} }
}
else else
{ {
if (!path || !path[0]) if (!path || !path[0])

View File

@ -285,15 +285,9 @@ _edi_create_notify_cb(void *d, Eio_File *handler EINA_UNUSED, const Eio_Progress
} }
static void static void
_edi_create_error_cb(void *data, Eio_File *handler EINA_UNUSED, int error) _edi_create_error_cb(void *data EINA_UNUSED, Eio_File *handler EINA_UNUSED, int error)
{ {
Edi_Create *create;
create = (Edi_Create *) data;
ERR("copy error: [%s]\n", strerror(error)); ERR("copy error: [%s]\n", strerror(error));
if (create && create->callback)
create->callback(create->path, EINA_FALSE);
_edi_create_free_data(); _edi_create_free_data();
} }