Skip to content

Commit

Permalink
fix(download): fix download to directory after update
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed Oct 27, 2019
1 parent a33218d commit ca2df63
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/download-torrent-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ export default (props) => {
</g>
</svg>
},
{name: __('Download to') + '...', click: () => {
{name: __('Download to') + '...', click: async () => {
if(dialog)
{
const path = dialog.showOpenDialog({
const path = (await dialog.showOpenDialog({
properties: ['openDirectory']
});
})).filePaths;
if(!path || path.length < 1)
return
console.log(path);
window.torrentSocket.emit('download', props.torrent, path[0], (added) => {
if(props.onAdded)
props.onAdded(added)
Expand Down

0 comments on commit ca2df63

Please sign in to comment.