diff --git a/v3/UNRELEASED_CHANGELOG.md b/v3/UNRELEASED_CHANGELOG.md index 8e4648038..50a108fca 100644 --- a/v3/UNRELEASED_CHANGELOG.md +++ b/v3/UNRELEASED_CHANGELOG.md @@ -23,6 +23,7 @@ After processing, the content will be moved to the main changelog and this file ## Fixed +- Fix Windows systray icon not defaulting to application icon when no custom icon is provided (#4704) ## Deprecated diff --git a/v3/pkg/application/systemtray_windows.go b/v3/pkg/application/systemtray_windows.go index 5b29dd4f0..fd9ced4d1 100644 --- a/v3/pkg/application/systemtray_windows.go +++ b/v3/pkg/application/systemtray_windows.go @@ -225,7 +225,7 @@ func (s *windowsSystemTray) run() { s.uid = uint32(s.parent.id) // Resolve the base icons once so we can reuse them for light/dark modes - defaultIcon := getNativeApplication().windowClass.Icon + defaultIcon := w32.LoadIconWithResourceID(w32.GetModuleHandle(""), w32.RT_ICON) // Priority: custom icon > default app icon > built-in icon if s.parent.icon != nil {