go-toast

Send toast notifications in Windows
Log | Files | Refs | README | LICENSE

commit 2ed479fb48fad032355df9d6ec248a980650a62e
parent d2b1e55846a07bcd3d814784a3ed1745b0208e88
Author: Jack Mordaunt <jackmordaunt@gmail.com>
Date:   Fri, 17 Mar 2023 17:23:16 +0800

examples/toast-cli: default to background activation type

This type is the more correct one for callbacks.

Signed-off-by: Jack Mordaunt <jackmordaunt@gmail.com>

Diffstat:
Mexamples/toast-cli/main.go | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/toast-cli/main.go b/examples/toast-cli/main.go @@ -18,7 +18,7 @@ func main() { flag.StringVar(&n.Title, "title", "title", "Title") flag.StringVar(&n.Body, "body", "body", "Body") flag.StringVar(&n.Icon, "icon", "", "Icon") - flag.StringVar(&n.ActivationType, "activation-type", "", "Activation Type [protocol, foreground, background]") + flag.StringVar(&n.ActivationType, "activation-type", toast.Background, "Activation Type [protocol, foreground, background]") flag.StringVar(&n.ActivationArguments, "activation-args", "", "Activation Arguments") flag.StringVar(&n.Audio, "audio", "", "Audio to play when displaying the toast") flag.BoolVar(&n.Loop, "loop", false, "Loop audio") @@ -56,12 +56,12 @@ func main() { }) n.Actions = append(n.Actions, toast.Action{ - Type: toast.Foreground, + Type: toast.Background, Content: "Send", Arguments: "send", }) n.Actions = append(n.Actions, toast.Action{ - Type: toast.Foreground, + Type: toast.Background, Content: "Close", Arguments: "close", })