diff --git a/src/renderer/controllers/playback-controller.js b/src/renderer/controllers/playback-controller.js index c80489af..302ade81 100644 --- a/src/renderer/controllers/playback-controller.js +++ b/src/renderer/controllers/playback-controller.js @@ -242,7 +242,7 @@ module.exports = class PlaybackController { } // otherwise, play the video - dispatch('setTitle', torrentSummary.files[state.playing.fileIndex].name) + state.window.title = torrentSummary.files[state.playing.fileIndex].name this.update() ipcRenderer.send('onPlayerOpen') diff --git a/src/renderer/controllers/torrent-list-controller.js b/src/renderer/controllers/torrent-list-controller.js index 5d5a8987..808d5d72 100644 --- a/src/renderer/controllers/torrent-list-controller.js +++ b/src/renderer/controllers/torrent-list-controller.js @@ -50,7 +50,11 @@ module.exports = class TorrentListController { if (files.length === 0 || typeof files[0] !== 'string') { this.state.location.go({ url: 'create-torrent', - files: files + files: files, + setup: (cb) => { + this.state.window.title = 'Create New Torrent' + cb(null) + } }) return }