Disallow saving torrent file until it is generated

Fixes #1031.
This commit is contained in:
Adam Gotlib
2016-10-17 18:22:03 +02:00
committed by Feross Aboukhadijeh
parent d8904aaf6e
commit ffd9fbda57

View File

@@ -220,7 +220,8 @@ module.exports = class TorrentListController {
menu.append(new electron.remote.MenuItem({
label: 'Save Torrent File As...',
click: () => dispatch('saveTorrentFileAs', torrentSummary.torrentKey)
click: () => dispatch('saveTorrentFileAs', torrentSummary.torrentKey),
enabled: typeof torrentSummary.torrentFileName !== 'undefined'
}))
menu.popup(electron.remote.getCurrentWindow())