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:
Christian Soffke 2025-12-21 11:29:15 +01:00 committed by Solomon Peachy
parent f316535684
commit 4e211b55f9
2 changed files with 8 additions and 1 deletions

View file

@ -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;

View file

@ -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