mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Update example
This commit is contained in:
parent
72a0db3938
commit
c767c75109
1 changed files with 3 additions and 3 deletions
|
|
@ -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!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue