Do not show torrent file option on OS X
This commit is contained in:
14
main/menu.js
14
main/menu.js
@@ -156,12 +156,7 @@ function showOpenTorrentAddress () {
|
|||||||
function getAppMenuTemplate () {
|
function getAppMenuTemplate () {
|
||||||
var fileMenu = [
|
var fileMenu = [
|
||||||
{
|
{
|
||||||
label: 'Create New Torrent from File',
|
label: process.platform === 'darwin' ? 'Create New Torrent...' : 'Create New Torrent from Folder...',
|
||||||
accelerator: 'CmdOrCtrl+F',
|
|
||||||
click: showOpenSeedFile
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Create New Torrent from Folder',
|
|
||||||
accelerator: 'CmdOrCtrl+N',
|
accelerator: 'CmdOrCtrl+N',
|
||||||
click: showOpenSeedFiles
|
click: showOpenSeedFiles
|
||||||
},
|
},
|
||||||
@@ -185,6 +180,13 @@ function getAppMenuTemplate () {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
// In Linux and Windows it is not possible to open both folders and files
|
||||||
|
if (process.platform !== 'darwin') {
|
||||||
|
fileMenu.unshift({
|
||||||
|
label: 'Create New Torrent from File...',
|
||||||
|
click: showOpenSeedFile
|
||||||
|
})
|
||||||
|
}
|
||||||
// File > Quit for Linux users with distros where the system tray is broken
|
// File > Quit for Linux users with distros where the system tray is broken
|
||||||
if (process.platform === 'linux') {
|
if (process.platform === 'linux') {
|
||||||
fileMenu.push({
|
fileMenu.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user