After creating torrent, remove create torrent page from forward stack

This commit is contained in:
Feross Aboukhadijeh
2016-05-19 18:55:49 -07:00
parent a29dbd7a71
commit 8f39f8a23e
2 changed files with 3 additions and 1 deletions

View File

@@ -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) {

View File

@@ -119,7 +119,6 @@ function CreateTorrentPage (state) {
comment: comment
}
dispatch('createTorrent', options)
dispatch('backToList')
}
function handleCancel () {