From 9eab58f0d2c8070199d161616f0ee0470b5b2b62 Mon Sep 17 00:00:00 2001 From: Zach Botterman Date: Sun, 23 Feb 2025 14:40:40 -0800 Subject: [PATCH] update comments --- v3/pkg/services/notifications/notifications_windows.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v3/pkg/services/notifications/notifications_windows.go b/v3/pkg/services/notifications/notifications_windows.go index f279f67be..92ae45f96 100644 --- a/v3/pkg/services/notifications/notifications_windows.go +++ b/v3/pkg/services/notifications/notifications_windows.go @@ -69,8 +69,8 @@ func (ns *Service) CheckNotificationAuthorization() bool { return true } -// SendNotification sends a basic notification with a name, title, and body. -// (subtitle is only available on macOS) +// SendNotification sends a basic notification with a name, title, and body. All other options are ignored on Windows. +// (subtitle, category id, and data are only available on macOS) func (ns *Service) SendNotification(options NotificationOptions) error { n := toast.Notification{ AppID: options.ID, @@ -88,6 +88,7 @@ func (ns *Service) SendNotification(options NotificationOptions) error { // SendNotificationWithActions sends a notification with additional actions and inputs. // A NotificationCategory must be registered with RegisterNotificationCategory first. The `CategoryID` must match the registered category. // If a NotificationCategory is not registered a basic notification will be sent. +// (subtitle, category id, and data are only available on macOS) func (ns *Service) SendNotificationWithActions(options NotificationOptions) error { nCategory := NotificationCategories[options.CategoryID]