diff --git a/renderer/index.js b/renderer/index.js index b3cde3df..a30ba77d 100644 --- a/renderer/index.js +++ b/renderer/index.js @@ -213,7 +213,6 @@ function dispatch (action, ...args) { onOpen(args[0] /* files */) } if (action === 'addTorrent') { - backToList() addTorrent(args[0] /* torrent */) } if (action === 'showOpenTorrentFile') { @@ -620,6 +619,7 @@ function getTorrentSummary (torrentKey) { // Adds a torrent to the list, starts downloading/seeding. TorrentID can be a // magnet URI, infohash, or torrent file: https://github.com/feross/webtorrent#clientaddtorrentid-opts-function-ontorrent-torrent- function addTorrent (torrentId) { + backToList() var torrentKey = state.nextTorrentKey++ var path = state.saved.downloadPath if (torrentId.path) {