Merge branch 'pr/607'

This commit is contained in:
Feross Aboukhadijeh
2016-05-31 11:55:04 -07:00
4 changed files with 25 additions and 2 deletions

View File

@@ -227,6 +227,9 @@ function dispatch (action, ...args) {
if (action === 'openTorrentFile') {
ipcRenderer.send('openTorrentFile') /* open torrent file */
}
if (action === 'openAddFiles') {
ipcRenderer.send('openAddFiles') /* add files with dialog */
}
if (action === 'showCreateTorrent') {
showCreateTorrent(args[0] /* paths */)
}

View File

@@ -39,7 +39,7 @@ function Header (state) {
<i
class='icon add'
title='Add torrent'
onclick=${dispatcher('openTorrentFile')}>
onclick=${dispatcher('openAddFiles')}>
add
</i>
`