Make right click -> "copy magnet uri" work for default torrents

For #233
This commit is contained in:
Feross Aboukhadijeh
2016-03-27 01:06:36 -07:00
parent d5bea54a83
commit b9c012a587
2 changed files with 5 additions and 3 deletions

View File

@@ -466,8 +466,8 @@ function addTorrentToList (torrent) {
state.saved.torrents.push({
status: 'new',
name: torrent.name,
magnetURI: torrent.magnetURI,
infoHash: torrent.infoHash
infoHash: torrent.infoHash,
magnetURI: torrent.magnetURI
})
saveState()
playInterfaceSound('ADD')
@@ -528,7 +528,6 @@ function addTorrentEvents (torrent) {
torrentSummary.status = 'downloading'
torrentSummary.ready = true
torrentSummary.name = torrentSummary.displayName || torrent.name
torrentSummary.infoHash = torrent.infoHash
torrentSummary.path = torrent.path
// Summarize torrent files