5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-16 08:59:29 +08:00

Fix systemTray.setIcon crashing on Linux (#3636)

This commit is contained in:
Miklos Gabor 2024-07-25 11:25:04 +03:00 committed by Travis McLane
parent f94ecaba84
commit 6c7cd651da
2 changed files with 2 additions and 1 deletions

View File

@ -74,6 +74,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix doctor detection of npm that is not installed with system package manager by [@pekim](https://github.com/pekim) in [#3458](https://github.com/wailsapp/wails/pull/3458)
- Fix missing MicrosoftEdgeWebview2Setup.exe. Thanks to [@robin-samuel](https://github.com/robin-samuel).
- Fix random crash on linux due to window ID handling by @leaanthony. Based on PR [#3466](https://github.com/wailsapp/wails/pull/3622) by [@5aaee9](https://github.com/5aaee9).
- Fix systemTray.setIcon crashing on Linux by [@windom](https://github.com/windom/) in [#3636](https://github.com/wailsapp/wails/pull/3636).
### Changed

View File

@ -375,7 +375,7 @@ func (s *linuxSystemTray) setIcon(icon []byte) {
globalApplication.error("systray error: failed to convert icon to PX: %s\n", err)
return
}
s.props.SetMust("org.kde.StatusNotifierItem", "IconPixmap", iconPx)
s.props.SetMust("org.kde.StatusNotifierItem", "IconPixmap", []PX{iconPx})
if s.conn == nil {
return