After creating torrent, remove create torrent page from forward stack
This commit is contained in:
parent
a29dbd7a71
commit
8f39f8a23e
2 changed files with 3 additions and 1 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue