Incorrect message of deleting file is showing even though the option to delete file is disabled.
This commit is contained in:
parent
46b57e06e7
commit
731614961e
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue