5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-10 01:01:36 +08:00
wails/mkdocs-website/docs
Calle Gustafsson 675f502802
wails3 alpha windows: fix crash when systray icon is clicked without an attached window (#3271)
* Fix: #3270

removes an unnessecary check which returned a double nil wich in turned causes a crash if systray doesn't have an attached window.

* Add iconIsInFlyout method to systray_windows

and use it to determine if the icon is in the
flyout or not when positioning an attached window.

* optimize the windows systray window positioning

we only need to get the systray bounds if
the icon is in the flyout area.

* Use correct behavior for placing the window

if the systray icon is visible in the taskbar the
window should be centered on the systray icon
otherwise the icon is in a flyout are and the
window should be placed in the corner.

Added comments to explain placement logic

* consistent placing of systray menu on right vs left click

* add PR info in changelog

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2024-03-24 17:04:40 +11:00
..
cy Add Cymraeg 2024-03-18 21:52:39 +11:00
en wails3 alpha windows: fix crash when systray icon is clicked without an attached window (#3271) 2024-03-24 17:04:40 +11:00
CNAME Add another CNAME file (thanks ghpages :/) 2023-10-29 10:03:33 +11:00