From 569111d33606f9f9c0b2d23b9ea3952738a4697f Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 5 Mar 2016 20:16:10 -0800 Subject: [PATCH] load torrents from state.saved --- renderer/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/renderer/index.js b/renderer/index.js index e3d3838b..0582b507 100644 --- a/renderer/index.js +++ b/renderer/index.js @@ -38,6 +38,10 @@ function init () { state.client.on('warning', onWarning) state.client.on('error', onError) + state.saved.torrents.forEach(function (torrent) { + state.client.add(torrent.torrentFile) + }) + // For easy debugging in Developer Tools global.state = state