Erasing now utilizes info already aquired from ecdb_hal.
This commit is contained in:
@@ -67,7 +67,7 @@ _button_cb_begin(void *data, Evas_Object *o __UNUSED__,
|
||||
{
|
||||
EINA_ERROR_PDBG("Choose a drive!\n");
|
||||
edje_object_part_text_set(page->erase, "progress_text",
|
||||
"Choose a Drive!");
|
||||
"Choose a Drive!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -79,6 +79,26 @@ _button_cb_begin(void *data, Evas_Object *o __UNUSED__,
|
||||
return;
|
||||
}
|
||||
|
||||
if (!ECDB_PROJECT(proj)->drive->fresh_info)
|
||||
{
|
||||
EINA_ERROR_PDBG("Insert a disc into the drive!\n");
|
||||
edje_object_part_text_set(page->erase, "progress_text",
|
||||
"Insert a disc into the drive!");
|
||||
burn_drive_release(ECDB_PROJECT(proj)->drive->tangible[0].drive, 0);
|
||||
burn_drive_info_free(ECDB_PROJECT(proj)->drive->tangible);
|
||||
return;
|
||||
}
|
||||
|
||||
if (ECDB_PROJECT(proj)->drive->status & ECDB_DISC_BLANK)
|
||||
{
|
||||
EINA_ERROR_PDBG("Disc is already blank!\n");
|
||||
edje_object_part_text_set(page->erase, "progress_text",
|
||||
"Disc is already blank!");
|
||||
burn_drive_release(ECDB_PROJECT(proj)->drive->tangible[0].drive, 0);
|
||||
burn_drive_info_free(ECDB_PROJECT(proj)->drive->tangible);
|
||||
return;
|
||||
}
|
||||
|
||||
proj->quick = ecdb_check_checked_get(proj->speed);
|
||||
// TODO: Error Messages here
|
||||
if (!ecdb_erase_disc(proj, page))
|
||||
|
Reference in New Issue
Block a user