mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-17 01:19:29 +08:00
Fix systemTray.setIcon crashing on Linux (#3636)
This commit is contained in:
parent
f94ecaba84
commit
6c7cd651da
@ -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 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 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 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
|
### Changed
|
||||||
|
|
||||||
|
@ -375,7 +375,7 @@ func (s *linuxSystemTray) setIcon(icon []byte) {
|
|||||||
globalApplication.error("systray error: failed to convert icon to PX: %s\n", err)
|
globalApplication.error("systray error: failed to convert icon to PX: %s\n", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
s.props.SetMust("org.kde.StatusNotifierItem", "IconPixmap", iconPx)
|
s.props.SetMust("org.kde.StatusNotifierItem", "IconPixmap", []PX{iconPx})
|
||||||
|
|
||||||
if s.conn == nil {
|
if s.conn == nil {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user