From 53209a9da38a2c7eab8d93371e363c96f5aca0d3 Mon Sep 17 00:00:00 2001 From: grunjol Date: Fri, 13 May 2016 06:02:08 -0300 Subject: [PATCH] push/unshift from submenu in linux/windows (#504) --- main/menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/menu.js b/main/menu.js index e897d112..c537ebc6 100644 --- a/main/menu.js +++ b/main/menu.js @@ -388,7 +388,7 @@ function getAppMenuTemplate () { // In Linux and Windows it is not possible to open both folders and files if (process.platform === 'linux' || process.platform === 'windows') { // File menu (Windows, Linux) - template[0].unshift({ + template[0].submenu.unshift({ label: 'Create New Torrent from File...', click: showOpenSeedFile }) @@ -408,7 +408,7 @@ function getAppMenuTemplate () { // will have a way to quit the app. if (process.platform === 'linux') { // File menu (Linux) - template[0].push({ + template[0].submenu.push({ label: 'Quit', click: () => app.quit() })