Save .torrent dialog: Add "All Files" option
This commit is contained in:
@@ -868,7 +868,10 @@ function saveTorrentFileAs (torrentSummary) {
|
|||||||
var opts = {
|
var opts = {
|
||||||
title: 'Save Torrent File',
|
title: 'Save Torrent File',
|
||||||
defaultPath: path.join(state.saved.downloadPath, newFileName),
|
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) => {
|
dialog.showSaveDialog(remote.getCurrentWindow(), opts, (savePath) => {
|
||||||
fs.readFile(torrentSummary.torrentPath, function (err, torrentFile) {
|
fs.readFile(torrentSummary.torrentPath, function (err, torrentFile) {
|
||||||
|
|||||||
Reference in New Issue
Block a user