After creating torrent, remove create torrent page from forward stack
This commit is contained in:
@@ -807,6 +807,9 @@ function findFilesRecursive (fileOrFolder, cb) {
|
||||
function createTorrent (options) {
|
||||
var torrentKey = state.nextTorrentKey++
|
||||
ipcRenderer.send('wt-create-torrent', torrentKey, options)
|
||||
state.location.backToFirst(function () {
|
||||
state.location.clearForward('create-torrent')
|
||||
})
|
||||
}
|
||||
|
||||
function torrentInfoHash (torrentKey, infoHash) {
|
||||
|
||||
@@ -119,7 +119,6 @@ function CreateTorrentPage (state) {
|
||||
comment: comment
|
||||
}
|
||||
dispatch('createTorrent', options)
|
||||
dispatch('backToList')
|
||||
}
|
||||
|
||||
function handleCancel () {
|
||||
|
||||
Reference in New Issue
Block a user