getlantern / systray

a cross platfrom Go library to place an icon and menu in the notification area
Apache License 2.0
3.28k stars 451 forks source link

Example doesn't work #273

Open henri9813 opened 4 months ago

henri9813 commented 4 months ago

Hello,

I try to run the example but it doesn't work:

➜  iPingTray git:(main) ✗ go run main.go
# command-line-arguments
./main.go:83:13: undefined: systray.SetRemovalAllowed

It come from: https://github.com/getlantern/systray/blob/22c167e80905f87867fc05fbe553342578976d7b/example/main.go#L83

But strangely, this function seems defined here: https://github.com/getlantern/systray/blob/22c167e80905f87867fc05fbe553342578976d7b/systray_darwin.go#L42

Best regards