Update example

This commit is contained in:
Lea Anthony 2022-10-11 21:36:22 +11:00
commit c767c75109
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405

View file

@ -59,15 +59,15 @@ func main() {
},
})
// ------------------------------------
// Create some menus items that will be reused
// ---------------------------------------------------
// Create a ton of menu items to show what can be done
// This is a menuitem we will show/hide at runtime
visibleNotVisible := menu.Label("visible?").Show()
var counter int
icons := [][]byte{lightModeIcon, darkModeIcon}
iconCounter := 0
iconCounter := 1
disabledEnabledMenu := menu.Label("disabled").Disable().OnClick(func(c *menu.CallbackData) {
println("Disabled item clicked!")