Skip to content

Commit

Permalink
A: windows 左键和右键事件回调增加 systray.IMenu 回调参数
Browse files Browse the repository at this point in the history
  • Loading branch information
sxmxta committed Aug 9, 2023
1 parent a33f8f5 commit 2e4d997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions systray_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ var (
isEnableOnClick = false
)

func setOnClick(fn func()) {
func setOnClick(fn func(menu IMenu)) {
enableOnClick()
onClick = fn
}

func setOnDClick(fn func()) {
func setOnDClick(fn func(menu IMenu)) {
enableOnClick()
onDClick = fn
}
Expand Down

0 comments on commit 2e4d997

Please sign in to comment.