Open Torrent File should only let you select torrent files
This commit is contained in:
@@ -140,6 +140,7 @@ function showCreateTorrent () {
|
|||||||
function showOpenTorrentFile () {
|
function showOpenTorrentFile () {
|
||||||
electron.dialog.showOpenDialog(windows.main, {
|
electron.dialog.showOpenDialog(windows.main, {
|
||||||
title: 'Select a .torrent file to open.',
|
title: 'Select a .torrent file to open.',
|
||||||
|
filters: [{ name: 'Torrent Files', extensions: ['torrent'] }],
|
||||||
properties: [ 'openFile', 'multiSelections' ]
|
properties: [ 'openFile', 'multiSelections' ]
|
||||||
}, function (filenames) {
|
}, function (filenames) {
|
||||||
if (!Array.isArray(filenames)) return
|
if (!Array.isArray(filenames)) return
|
||||||
|
|||||||
Reference in New Issue
Block a user