Incorrect message of deleting file is showing even though the option to delete file is disabled.

This commit is contained in:
arabcoders 2025-06-04 00:59:53 +03:00
parent 46b57e06e7
commit 731614961e

View file

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