fix: Properly declare iconIsInTrayBounds variable in Windows systray

Fixes Windows compilation error where iconIsInTrayBounds was being
assigned without declaration. Declares the variable explicitly
before assignment to resolve 'undefined: iconIsInTrayBounds' error.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Lea Anthony 2025-06-16 00:33:47 +10:00
commit fbd39c24f4

View file

@ -62,6 +62,7 @@ func (s *windowsSystemTray) positionWindow(window *WebviewWindow, offset int) er
// systray icons in windows can either be in the taskbar
// or in a flyout menu.
var iconIsInTrayBounds bool
iconIsInTrayBounds, err = s.iconIsInTrayBounds()
if err != nil {
return err