fixes for Electron 9

This commit is contained in:
Feross Aboukhadijeh
2020-07-15 14:35:03 -07:00
parent 1f19ed9a2d
commit 27bbdcc465
5 changed files with 10 additions and 10 deletions

View File

@@ -346,7 +346,7 @@ module.exports = class TorrentList extends React.Component {
} else {
icon = 'description' /* file icon, opens in OS default app */
handleClick = isDone
? dispatcher('openItem', infoHash, index)
? dispatcher('openPath', infoHash, index)
: (e) => e.stopPropagation() // noop if file is not ready
}
// TODO: add a css 'disabled' class to indicate that a file cannot be opened/streamed