show title on 'create new torrent' page
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user