Fix build issue

This commit is contained in:
Lea Anthony 2025-01-17 21:21:32 +11:00
commit 8ba623f5fe
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405
2 changed files with 2 additions and 3 deletions

View file

@ -12,7 +12,7 @@ var assets embed.FS
func main() {
app := application.New(application.Options{
Name: "Window Menu Demo",
Name: "Window MenuBar Demo",
Description: "A demo of menu bar toggling",
Assets: application.AssetOptions{
Handler: application.BundledAssetFileServer(assets),
@ -38,7 +38,7 @@ func main() {
// Create window with menu
app.NewWebviewWindowWithOptions(application.WebviewWindowOptions{
Title: "Window Menu Demo",
Title: "Window MenuBar Demo",
Width: 800,
Height: 600,
Windows: application.WindowsWindow{

View file

@ -43,7 +43,6 @@ func (c *Context) ContextMenuData() string {
}
return str
}
}
func (c *Context) withClickedMenuItem(menuItem *MenuItem) *Context {
c.data[clickedMenuItem] = menuItem