mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-01-18 21:17:59 +00:00
Moved Mac edit menu
This commit is contained in:
parent
544f7d6d8b
commit
fff2c53f15
@ -41,14 +41,14 @@ func (a *App) Menu() *menu.Menu {
|
|||||||
wailsRuntime.EventsEmit(a.ctx, "OpenHostsModal")
|
wailsRuntime.EventsEmit(a.ctx, "OpenHostsModal")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if runtime.GOOS == "darwin" {
|
||||||
|
appMenu.Append(menu.EditMenu())
|
||||||
|
}
|
||||||
|
|
||||||
helpMenu := appMenu.AddSubmenu("Help")
|
helpMenu := appMenu.AddSubmenu("Help")
|
||||||
helpMenu.AddText("User guide", nil, func(cd *menu.CallbackData) {
|
helpMenu.AddText("User guide", nil, func(cd *menu.CallbackData) {
|
||||||
wailsRuntime.BrowserOpenURL(a.ctx, "")
|
wailsRuntime.BrowserOpenURL(a.ctx, "")
|
||||||
})
|
})
|
||||||
|
|
||||||
if runtime.GOOS == "darwin" {
|
|
||||||
appMenu.Append(menu.EditMenu())
|
|
||||||
}
|
|
||||||
|
|
||||||
return appMenu
|
return appMenu
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user