From e0f02ace9e0c3395c9c702bdcdd3f9fee57a95ac Mon Sep 17 00:00:00 2001 From: DC Date: Wed, 6 Apr 2016 02:44:44 -0700 Subject: [PATCH] Open Torrent File should only let you select torrent files --- main/menu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/main/menu.js b/main/menu.js index d514ca9b..64cd4c82 100644 --- a/main/menu.js +++ b/main/menu.js @@ -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