Skip to content

Commit

Permalink
Use metadata API to fix Windows bug
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Feb 28, 2022
1 parent cdb74f2 commit dd95366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions app/app_windows.go
Expand Up @@ -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)
Expand Down

0 comments on commit dd95366

Please sign in to comment.