mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
plugins: sort, vbrfix: add warning
Destructive operations should come with a warning, especially if they are easy to select by accident from the Open With... menu. vbrfix even seems to be selected by default for audio files (which is probably not ideal). Change-Id: I4d2c79f2f19129d8b0257655e2d7c6093ad86eca
This commit is contained in:
parent
f316535684
commit
4e211b55f9
2 changed files with 8 additions and 1 deletions
|
|
@ -185,7 +185,11 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
{
|
||||
char *buf;
|
||||
int rc;
|
||||
if(!parameter) return PLUGIN_ERROR;
|
||||
if(!parameter)
|
||||
return PLUGIN_ERROR;
|
||||
|
||||
if (!rb->yesno_pop_confirm(ID2P(LANG_REALLY_OVERWRITE)))
|
||||
return PLUGIN_OK;
|
||||
|
||||
filename = (char *)parameter;
|
||||
|
||||
|
|
|
|||
|
|
@ -281,6 +281,9 @@ enum plugin_status plugin_start(const void *parameter)
|
|||
if (!parameter)
|
||||
return PLUGIN_ERROR;
|
||||
|
||||
if (!rb->yesno_pop_confirm(ID2P(LANG_REALLY_OVERWRITE)))
|
||||
return PLUGIN_OK;
|
||||
|
||||
audiobuf = rb->plugin_get_audio_buffer(&audiobuflen);
|
||||
|
||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue