Clean up showCreateTorrent

This commit is contained in:
DC
2016-05-26 01:56:32 -07:00
parent 3d7f46da65
commit 7de3d3cc41
3 changed files with 14 additions and 16 deletions

View File

@@ -189,8 +189,7 @@ function showOpenSeedFile () {
properties: [ 'openFile' ]
}, function (selectedPaths) {
if (!Array.isArray(selectedPaths)) return
var selectedPath = selectedPaths[0]
windows.main.send('dispatch', 'showCreateTorrent', selectedPath)
windows.main.send('dispatch', 'showCreateTorrent', selectedPaths)
})
}
@@ -202,8 +201,7 @@ function showOpenSeedFiles () {
properties: [ 'openFile', 'openDirectory' ]
}, function (selectedPaths) {
if (!Array.isArray(selectedPaths)) return
var selectedPath = selectedPaths[0]
windows.main.send('dispatch', 'showCreateTorrent', selectedPath)
windows.main.send('dispatch', 'showCreateTorrent', selectedPaths)
})
}