mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 07:29:56 +08:00
15 lines
339 B
Go
15 lines
339 B
Go
//go:build !production || devtools
|
|
|
|
package application
|
|
|
|
func NewOpenDevToolsMenuItem() *MenuItem {
|
|
return NewMenuItem("Open Developer Tools").
|
|
SetAccelerator("Alt+Command+I").
|
|
OnClick(func(ctx *Context) {
|
|
currentWindow := globalApplication.CurrentWindow()
|
|
if currentWindow != nil {
|
|
currentWindow.OpenDevTools()
|
|
}
|
|
})
|
|
}
|