From 731614961e05f86f7bfd347e1db4b510c6438c15 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Wed, 4 Jun 2025 00:59:53 +0300 Subject: [PATCH] Incorrect message of deleting file is showing even though the option to delete file is disabled. --- ui/components/History.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/components/History.vue b/ui/components/History.vue index 368b9657..3047414b 100644 --- a/ui/components/History.vue +++ b/ui/components/History.vue @@ -621,7 +621,10 @@ const archiveItem = item => { } const removeItem = item => { - const msg = `Remove '${item.title ?? item.id ?? item.url ?? '??'}'?\n this will delete the file from the server.` + let msg = `Remove '${item.title ?? item.id ?? item.url ?? '??'}'?` + if (item.status === 'finished' && item.filename && config.app.remove_files) { + msg += '\nThis will delete the file from the server if it exists.' + } if (false === box.confirm(msg, config.app.remove_files)) { return false }