-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: tasks list has old wrong items and add switch for auto download torrent #980
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need add follow-torrent
and follow-metalink
default value before 'listen-port'
in ConfigManager.initSystemConfig()
Motrix/src/main/core/ConfigManager.js
Line 62 in 509c799
'listen-port': 21301, |
@@ -168,7 +168,7 @@ | |||
} | |||
}) | |||
merge(cached.files, result) | |||
|
|||
cached.files.splice(result.length, cached.files.length - result.length) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this line, and add follow codes before methods
watch: {
gid () {
cached.files = []
}
},
src/renderer/utils/task.js
Outdated
@@ -16,7 +16,9 @@ export const initTaskForm = state => { | |||
engineMaxConnectionPerServer, | |||
maxConnectionPerServer, | |||
newTaskShowDownloading, | |||
split | |||
split, | |||
followTorrent, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please sort the keys alphabetically
src/renderer/utils/task.js
Outdated
@@ -32,6 +34,8 @@ export const initTaskForm = state => { | |||
torrent: '', | |||
uris: addTaskUrl, | |||
userAgent: '', | |||
notFollowMetalink: followMetalink, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please sort the keys alphabetically
Description
Tasks list in task detail has wrong items when user switch between different task. I remove old items which shouldn't appear in new list.
Add a switch for auto download magnet link and torrent. Users can choose whether to automatically start downloading all the files in the torrent or whether to download only the torrent file itself.
Related Issues
Fixes #971
Close #934
Close #440
Checklist: