show video title in webtorrent app for all external players

This commit is contained in:
Feross Aboukhadijeh
2016-08-21 16:54:45 -07:00
parent d1e557f054
commit b79971eea5

View File

@@ -241,6 +241,8 @@ module.exports = class PlaybackController {
return this.update()
}
state.window.title = torrentSummary.files[state.playing.fileIndex].name
// play in VLC if set as default player (Preferences / Playback / Play in VLC)
if (this.state.saved.prefs.openExternalPlayer) {
dispatch('openExternalPlayer')
@@ -250,7 +252,6 @@ module.exports = class PlaybackController {
}
// otherwise, play the video
state.window.title = torrentSummary.files[state.playing.fileIndex].name
this.update()
ipcRenderer.send('onPlayerOpen')