A full-featured download manager.
Merge branch 'feature/task_list_201905312258'
Dr_rOot03002221e7db
diff --cc src/renderer/components/Native/EngineClient.vueindex 3c262808,eccb23e9..d5e8caa5--- a/src/renderer/components/Native/EngineClient.vue+++ b/src/renderer/components/Native/EngineClient.vue@@@ -91,17 -91,25 +91,25 @@@this.$msg.info(message)})},- onDownloadError: function (event) {+ onDownloadError (event) {- console.log('aria2 onDownloadError', event)const [{ gid }] = eventthis.fetchTaskItem({ gid }).then((task) => {const taskName = getTaskName(task)+ const { errorCode, errorMessage } = task+ console.error(`[Motrix] download error===> Gid: ${gid}, #${errorCode}, ${errorMessage}`)const message = this.$t('task.download-error-message', { taskName })- this.$msg.error(message)+ const link = `<a target="_blank" href="https://github.com/agalwood/Motrix/wiki/Error#${errorCode}" rel="noopener noreferrer">#${errorCode}</a>`+ this.$msg({+ type: 'error',+ showClose: true,+ duration: 5000,+ dangerouslyUseHTMLString: true,+ message: `${message} ${link}`+ })})},- onDownloadComplete: function (event) {+ onDownloadComplete (event) {console.log('aria2 onDownloadComplete')this.$store.dispatch('task/fetchList')const [{ gid }] = event@@@ -193,9 -201,10 +201,10 @@@this.startPolling()}, this.interval)},- polling: function () {+ polling () {this.$store.dispatch('app/fetchGlobalStat')this.$store.dispatch('task/fetchList')+if (this.taskItemInfoVisible && this.currentTaskItem) {this.$store.dispatch('task/fetchItem', this.currentTaskItem.gid)}