Skip to content

Commit

Permalink
Merge pull request #4371 from lucor/fixes/3678
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz authored Nov 12, 2023
2 parents 65cc2a3 + 4918889 commit a289a25
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/driver/glfw/driver_desktop.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ func (d *gLDriver) SetSystemTrayMenu(m *fyne.Menu) {
d.SetSystemTrayIcon(theme.BrokenImageIcon())
}

app := fyne.CurrentApp()
title := app.Metadata().Name
if title == "" {
title = app.UniqueID()
}
systray.SetTitle(title)

// it must be refreshed after init, so an earlier call would have been ineffective
d.refreshSystray(m)
}, func() {
Expand Down

0 comments on commit a289a25

Please sign in to comment.