star-tek-mb / zig-tray

Create tray applications with zig
12 stars 3 forks source link

Add onPopupClick handler for when the balloon is clicked. #1

Closed svc-user closed 2 weeks ago

svc-user commented 3 months ago

Hi,

Thanks for the library, it have made my little hobby project a breezy to code :)

I've added two changes, you might be interested in (or not).

1) First the Tray now has an onPopupClick property that takes a callback function which is triggered when the popup is clicked. 2) The return value of showNotification is that of the call to Shell_NotifyIconW. This allows the user to check the return code and handle failed notifications appropriately - this is a breaking change.

~ br

star-tek-mb commented 2 weeks ago

Hi @svc-user. I'm very sorry for late response. I have not been active recently with zig. But I appreciate your work. Good changes, btw. You did good job, thank you for your contribution!

svc-user commented 2 weeks ago

No worries :) I have full understanding that it's a project you've started in your spare time out of curiosity or similar. No need to be present 24/7.

I'm glad my changes suit you 🙏