Merge branch 'pr/607'
This commit is contained in:
@@ -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 */)
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ function Header (state) {
|
||||
<i
|
||||
class='icon add'
|
||||
title='Add torrent'
|
||||
onclick=${dispatcher('openTorrentFile')}>
|
||||
onclick=${dispatcher('openAddFiles')}>
|
||||
add
|
||||
</i>
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user