commit 4c455bcffc0b598cbb2216b4083efa525092d897
parent c3ec8e5e1b0e950d3b85ac69848573b8aabaa3bb
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date: Fri, 17 Jan 2025 17:52:14 +0800
notify: [windows] supply action id through arguments
This is necessary to identify the correct response data when activated.
Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/notify_windows.go b/notify_windows.go
@@ -71,7 +71,7 @@ func push(n Notification) (err error) {
actions = append(actions, windowsnotify.Action{
InputID: a.ID,
Content: a.ButtonLabel,
- Arguments: fmt.Sprintf("%d", id),
+ Arguments: fmt.Sprintf("%d-%s", id, encode(a.ID)),
})
}
}