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

@@ -61,12 +61,12 @@ module.exports = class PlaybackController {
}
// Open a file in OS default app.
openItem (infoHash, index) {
openPath (infoHash, index) {
const torrentSummary = TorrentSummary.getByKey(this.state, infoHash)
const filePath = path.join(
torrentSummary.path,
torrentSummary.files[index].path)
ipcRenderer.send('openItem', filePath)
ipcRenderer.send('openPath', filePath)
}
// Toggle (play or pause) the currently playing media