forked from len0rd/rockbox
fileop: display progress bar for single file deletion
Change-Id: Id895eb270b8ce1ad483c508c98d6318ba6069cf0
This commit is contained in:
parent
42b63daebb
commit
eb91595988
1 changed files with 4 additions and 1 deletions
|
@ -598,6 +598,9 @@ int delete_fileobject(const char *selected_file)
|
|||
rc = directory_fileop(¶m, FOC_DELETE);
|
||||
cpu_boost(false);
|
||||
} else {
|
||||
param.objects = param.processed = 1;
|
||||
if (poll_cancel_action(FOC_DELETE, ¶m))
|
||||
return FORC_CANCELLED;
|
||||
rc = remove(param.path) * 10;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue