Open Torrent File should only let you select torrent files

This commit is contained in:
DC
2016-04-06 02:44:44 -07:00
parent 28c386d916
commit e0f02ace9e

View File

@@ -140,6 +140,7 @@ function showCreateTorrent () {
function showOpenTorrentFile () {
electron.dialog.showOpenDialog(windows.main, {
title: 'Select a .torrent file to open.',
filters: [{ name: 'Torrent Files', extensions: ['torrent'] }],
properties: [ 'openFile', 'multiSelections' ]
}, function (filenames) {
if (!Array.isArray(filenames)) return