A full-featured download manager.
feat: shift trash task auto checked remove files
Dr_rOot766c2c26b858
diff --git a/src/renderer/components/Task/TaskItemActions.vue b/src/renderer/components/Task/TaskItemActions.vueindex 1772a981..4d5800ce 100644--- a/src/renderer/components/Task/TaskItemActions.vue+++ b/src/renderer/components/Task/TaskItemActions.vue@@ -263,16 +263,18 @@}})},- onTrashClick () {+ onTrashClick (event) {const self = thisconst { task } = this+ const isChecked = !!event.shiftKeythis.$electron.remote.dialog.showMessageBox({type: 'warning',title: this.$t('task.remove-record'),message: this.$t('task.remove-record-confirm', { taskName: this.taskName }),buttons: [this.$t('app.yes'), this.$t('app.no')],cancelId: 1,- checkboxLabel: this.$t('task.remove-record-label')+ checkboxLabel: this.$t('task.remove-record-label'),+ checkboxChecked: isChecked}, (buttonIndex, checkboxChecked) => {if (buttonIndex === 0) {self.removeTaskRecord(task, checkboxChecked)