Fix a couple bugs, and now errors are displayed to progress text.
This commit is contained in:
@@ -363,17 +363,26 @@ ecdb_cb_erase_page_buttons_clicked(void *data, Evas_Object *o,
|
||||
int speed;
|
||||
Ecdb_Erase_Project *proj;
|
||||
proj = ecdb_erase_project_new();
|
||||
char buf[1024];
|
||||
|
||||
snprintf(buf, sizeof(buf), "Commencing...");
|
||||
edje_object_part_text_set(swallow, "progress_text", buf);
|
||||
if (!ecdb_aquire_drive(ECDB_PROJECT(proj), 0))
|
||||
{
|
||||
printf("Couldn't grab drive!\n");
|
||||
ecdb_erase_project_destroy(proj);
|
||||
snprintf(buf, sizeof(buf), "Couldn't grab drive!");
|
||||
edje_object_part_text_set(swallow, "progress_text", buf);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!ecdb_erase_disc(proj))
|
||||
{
|
||||
printf("Couldn't begin burn!\n");
|
||||
ecdb_erase_project_destroy(proj);
|
||||
snprintf(buf, sizeof(buf), "Disc not erasable!");
|
||||
edje_object_part_text_set(swallow, "progress_text", buf);
|
||||
return;
|
||||
}
|
||||
|
||||
proj->quick = speed;
|
||||
|
Reference in New Issue
Block a user