From 5dca89b61cf070f78a16e8636ff1dc6f56fee434 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 19 May 2016 18:56:41 -0700 Subject: [PATCH] When player is active, and magnet link is pasted, go back to list --- renderer/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {