MacOS menu not displayed
roromix opened this issue · 2 comments
roromix commented
I have tried to add a menu directly to the app, it display properly on Windows but isn't displayed on MacOS
m := a.NewMenu([]*astilectron.MenuItemOptions{
{
Label: astikit.StrPtr("Menu1"),
OnClick: func(e astilectron.Event) (deleteLister bool) {
window.SendMessage("menu1")
return
},
},
{
Label: astikit.StrPtr("Menu 2"),
OnClick: func(e astilectron.Event) (deleteLister bool) {
window.SendMessage("menu2")
return
},
},
{
Label: astikit.StrPtr("Help"),
SubMenu: []*astilectron.MenuItemOptions{
{
Label: astikit.StrPtr("About"),
OnClick: func(e astilectron.Event) (deleteLister bool) {
createAboutPopin()
return
},
},
},
},
})
err := m.Create()
checkError(err)
Has anyone ever managed to display a menu on MacOS, and how?