Skip to content

Commit

Permalink
Clarify docs for check functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jan 7, 2024
1 parent d160fd3 commit 521fc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion systray.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ func AddMenuItem(title string, tooltip string) *MenuItem {
}

// AddMenuItemCheckbox adds a menu item with the designated title and tooltip and a checkbox for Linux.
// On other platforms there will be a check indicated next to the item if `checked` is true.
// It can be safely invoked from different goroutines.
// On Windows and OSX this is the same as calling AddMenuItem
func AddMenuItemCheckbox(title string, tooltip string, checked bool) *MenuItem {
item := newMenuItem(title, tooltip, nil)
item.isCheckable = true
Expand Down

0 comments on commit 521fc5d

Please sign in to comment.