push/unshift from submenu in linux/windows (#504)
This commit is contained in:
@@ -388,7 +388,7 @@ function getAppMenuTemplate () {
|
|||||||
// In Linux and Windows it is not possible to open both folders and files
|
// In Linux and Windows it is not possible to open both folders and files
|
||||||
if (process.platform === 'linux' || process.platform === 'windows') {
|
if (process.platform === 'linux' || process.platform === 'windows') {
|
||||||
// File menu (Windows, Linux)
|
// File menu (Windows, Linux)
|
||||||
template[0].unshift({
|
template[0].submenu.unshift({
|
||||||
label: 'Create New Torrent from File...',
|
label: 'Create New Torrent from File...',
|
||||||
click: showOpenSeedFile
|
click: showOpenSeedFile
|
||||||
})
|
})
|
||||||
@@ -408,7 +408,7 @@ function getAppMenuTemplate () {
|
|||||||
// will have a way to quit the app.
|
// will have a way to quit the app.
|
||||||
if (process.platform === 'linux') {
|
if (process.platform === 'linux') {
|
||||||
// File menu (Linux)
|
// File menu (Linux)
|
||||||
template[0].push({
|
template[0].submenu.push({
|
||||||
label: 'Quit',
|
label: 'Quit',
|
||||||
click: () => app.quit()
|
click: () => app.quit()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user