mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Comment the menu stuff that we only do on mac
This commit is contained in:
parent
d9780239b6
commit
b3510d6973
@ -102,7 +102,9 @@ const template = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// macOS has specific menu conventions...
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
|
// first macOS menu is the name of the app
|
||||||
const name = electron.app.getName()
|
const name = electron.app.getName()
|
||||||
template.unshift({
|
template.unshift({
|
||||||
label: name,
|
label: name,
|
||||||
@ -138,6 +140,7 @@ if (process.platform === 'darwin') {
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
// Edit menu.
|
// Edit menu.
|
||||||
|
// This has a 'speech' section on macOS
|
||||||
template[1].submenu.push(
|
template[1].submenu.push(
|
||||||
{
|
{
|
||||||
type: 'separator'
|
type: 'separator'
|
||||||
@ -155,6 +158,7 @@ if (process.platform === 'darwin') {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
// Window menu.
|
// Window menu.
|
||||||
|
// This also has specific functionality on macOS
|
||||||
template[3].submenu = [
|
template[3].submenu = [
|
||||||
{
|
{
|
||||||
label: 'Close',
|
label: 'Close',
|
||||||
|
Loading…
Reference in New Issue
Block a user