go-toast

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

commit a09f8f0fe30b5971d8c0a855c41ff0dfe6b18b6e
parent 5b500ee64deb0af6ed41fb037398bf6f9c00c8e6
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date:   Tue, 21 Mar 2023 17:56:17 +0800

bind: more precise early out

This fixes a bug where there are other fields supplied for the
AppData struct.

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

Diffstat:
Minternal/bind/registry.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/bind/registry.go b/internal/bind/registry.go @@ -41,7 +41,7 @@ func SetAppData(data AppData) (err error) { // // This allows the caller to either globally set the app data // or provide it per notification. - if appData == data || data == (AppData{}) { + if appData == data || data.ID == "" { return nil }