Fix missing 'About WebTorrent' menu item
This commit is contained in:
@@ -199,7 +199,7 @@ function getAppMenuTemplate () {
|
|||||||
type: 'separator'
|
type: 'separator'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: process.platform === 'windows'
|
label: process.platform === 'win32'
|
||||||
? 'Close'
|
? 'Close'
|
||||||
: 'Close Window',
|
: 'Close Window',
|
||||||
accelerator: 'CmdOrCtrl+W',
|
accelerator: 'CmdOrCtrl+W',
|
||||||
@@ -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 === 'win32') {
|
||||||
// File menu (Windows, Linux)
|
// File menu (Windows, Linux)
|
||||||
template[0].submenu.unshift({
|
template[0].submenu.unshift({
|
||||||
label: 'Create New Torrent from File...',
|
label: 'Create New Torrent from File...',
|
||||||
|
|||||||
Reference in New Issue
Block a user