Save .torrent dialog: Add "All Files" option

This commit is contained in:
Feross Aboukhadijeh
2016-03-27 01:10:45 -07:00
parent ecfe243b16
commit 9b75025cb2

View File

@@ -868,7 +868,10 @@ function saveTorrentFileAs (torrentSummary) {
var opts = {
title: 'Save Torrent File',
defaultPath: path.join(state.saved.downloadPath, newFileName),
filters: [{ name: 'Torrents', extensions: ['torrent'] }]
filters: [
{ name: 'Torrent Files', extensions: ['torrent'] },
{ name: 'All Files', extensions: ['*'] }
]
}
dialog.showSaveDialog(remote.getCurrentWindow(), opts, (savePath) => {
fs.readFile(torrentSummary.torrentPath, function (err, torrentFile) {