From c767c751097df14914b586b62c2c328760fa4e87 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Tue, 11 Oct 2022 21:36:22 +1100 Subject: [PATCH] Update example --- v2/examples/systray/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v2/examples/systray/main.go b/v2/examples/systray/main.go index 7caf21edf..192d9887b 100644 --- a/v2/examples/systray/main.go +++ b/v2/examples/systray/main.go @@ -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!")