Files

15 lines
339 B
Go
Raw Permalink Normal View History

//go:build !production || devtools
package application
2024-02-09 20:06:38 +11:00
func newOpenDevToolsMenuItem() *MenuItem {
return newMenuItem("Open Developer Tools").
SetAccelerator("Alt+Command+I").
OnClick(func(ctx *Context) {
currentWindow := globalApplication.CurrentWindow()
if currentWindow != nil {
2024-02-09 20:06:38 +11:00
currentWindow.OpenDevTools()
}
})
}