From d148d4c97b6d94bd49d6c8e4a956b50d3bf0fd45 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 4 Mar 2016 16:15:30 -0800 Subject: [PATCH] Fix IPC calls after PR #4 No biggie, just FYI @ngoldman --- main/ipc.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main/ipc.js b/main/ipc.js index 41485c5f..3ac1fe71 100644 --- a/main/ipc.js +++ b/main/ipc.js @@ -35,21 +35,21 @@ function addTorrentFromPaste () { torrentIds.forEach(function (torrentId) { torrentId = torrentId.trim() if (torrentId.length === 0) return - windows.mainWindow.send('addTorrent', torrentId) + windows.main.send('addTorrent', torrentId) }) } function setBounds (bounds) { debug('setBounds %o', bounds) - if (windows.mainWindow) { - windows.mainWindow.setBounds(bounds, true) + if (windows.main) { + windows.main.setBounds(bounds, true) } } function setAspectRatio (aspectRatio, extraSize) { debug('setAspectRatio %o %o', aspectRatio, extraSize) - if (windows.mainWindow) { - windows.mainWindow.setAspectRatio(aspectRatio, extraSize) + if (windows.main) { + windows.main.setAspectRatio(aspectRatio, extraSize) } } @@ -62,7 +62,7 @@ function setBadge (text) { // Show progress bar. Valid range is [0, 1]. Remove when < 0; indeterminate when > 1. function setProgress (progress) { debug('setProgress %s', progress) - if (windows.mainWindow) { - windows.mainWindow.setProgressBar(progress) + if (windows.main) { + windows.main.setProgressBar(progress) } }