Replies: 2 comments 3 replies
|
@jbunds — we investigated this across our enterprise references (winit, SDL3, Flutter, Wails v3). Root CauseWhen you set How enterprise frameworks handle this
The system Workaround (works today)Skip the role entirely. Use a plain menu item with app.SetMenu(gogpu.NewMenu().
AddItem(gogpu.MenuItem{
Title: "About Foo",
Action: func() {
fmt.Println("Foo v1.0 — built with GoGPU")
},
}).
AddItem(gogpu.MenuItem{Separator: true}).
AddItem(gogpu.MenuItem{Title: "Quit Foo", Role: gogpu.RoleQuit}),
)This bypasses the role system and connects your callback directly via Proper fix (two options)Option A: Support Option B: Add Update: Fixed in v0.49.1. If go get github.com/gogpu/gogpu@v0.49.1Option B ( |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have spent more time than I care to admit trying to override the default "About <application name>" window in my GoGPU application.
I have attempted many various approaches, but none have thus far allowed my application to render an "About ..." window with some basic text specified in the program. The various approaches I have tried include:
examples/menu/main.go(specificallyapp.GetSystemMenu(gogpu.SystemMenuApplication)with a customActionfunction, with and withoutRole: gogpu.RoleAbout)the approach outlined at https://pkg.go.dev/github.com/gogpu/gogpu#readme-macos-system-menu:
github.com/gogpu/ui/app,github.com/gogpu/ui/core/menu, andgithub.com/gogpu/ui/primitivespackages:I would be grateful if somone more familiar with GoGPU's broad API than I am would kindly show me a simple and idiomatic way to create a custom "About ..." window with just some basic text, and nothing more than that.
All reactions