fix menus on macos
This commit is contained in:
parent
0988794b48
commit
510652043d
|
|
@ -2884,7 +2884,6 @@ async function updateMenu() {
|
|||
} else {
|
||||
activeFrame = false
|
||||
}
|
||||
if (macOS) {
|
||||
const appSubmenu = await Submenu.new({
|
||||
text: 'Lightningbeam',
|
||||
items: [
|
||||
|
|
@ -2905,7 +2904,6 @@ async function updateMenu() {
|
|||
},
|
||||
]
|
||||
})
|
||||
}
|
||||
const fileSubmenu = await Submenu.new({
|
||||
text: 'File',
|
||||
items: [
|
||||
|
|
@ -3066,7 +3064,7 @@ async function updateMenu() {
|
|||
|
||||
let items = [fileSubmenu, editSubmenu, modifySubmenu, timelineSubmenu, viewSubmenu, helpSubmenu]
|
||||
if (macOS) {
|
||||
items.unshift([appSubmenu])
|
||||
items.unshift(appSubmenu)
|
||||
}
|
||||
const menu = await Menu.new({
|
||||
items: items,
|
||||
|
|
|
|||
Loading…
Reference in New Issue