diff --git a/CHANGELOG.md b/CHANGELOG.md index 96cd22b559..450792faa7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,7 @@ More detailed release notes can be found on the [releases page](https://github.c ### Fixed -* +* SendNotification does not show app name on Windows (#1940) ## 2.1.1 - 22 October 2021 diff --git a/app/app_windows.go b/app/app_windows.go index d3aa20f98a..d4cb38b3f8 100644 --- a/app/app_windows.go +++ b/app/app_windows.go @@ -74,9 +74,9 @@ var scriptNum = 0 func (a *fyneApp) SendNotification(n *fyne.Notification) { title := escapeNotificationString(n.Title) content := escapeNotificationString(n.Content) - appID := a.UniqueID() // TODO once we have an app name compiled in this could be improved + appID := a.UniqueID() if appID == "" || strings.Index(appID, "missing-id") == 0 { - appID = "Fyne app" + appID = a.Metadata().Name } script := fmt.Sprintf(notificationTemplate, title, content, appID)