5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-19 02:19:31 +08:00
wails/mkdocs-website/docs/en
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
..
API Refactor docs 2024-03-18 20:47:33 +11:00
development Refactor docs 2024-03-18 20:47:33 +11:00
getting-started Update first steps 2024-03-18 20:57:56 +11:00
learn Update runtime.md 2024-02-02 17:14:09 +11:00
stylesheets Update installation instructions 2023-11-02 20:53:59 +11:00
changelog.md wails3 alpha windows: fix crash when systray icon is clicked without an attached window (#3271) 2024-03-24 17:04:40 +11:00
favicon.ico Update installation instructions 2023-11-02 20:53:59 +11:00
index.md Fix feedback text 2024-01-31 17:55:21 +11:00
roadmap.md Fix window close issues 2024-03-06 16:59:13 -06:00
whats-new.md [v3, assetServer] Update docs 2024-02-21 13:40:32 +01:00