5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-09 15:19:59 +08:00
wails/mkdocs-website
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
..
docs wails3 alpha windows: fix crash when systray icon is clicked without an attached window (#3271) 2024-03-24 17:04:40 +11:00
generate Add Cymraeg 2024-03-18 21:52:39 +11:00
overrides Add Cymraeg 2024-03-18 21:52:39 +11:00
shared Latest status 2024-03-06 16:59:13 -06:00
CNAME Add another CNAME file (thanks ghpages :/) 2023-10-29 09:57:38 +11:00
mkdocs.insiders.yml Disable social plugin in docs 2024-03-20 08:32:24 +11:00
mkdocs.yml Update docs config 2024-03-19 08:36:57 +11:00
README.md Use prettier on docs source 2023-09-25 20:56:29 +10:00
requirements.insiders.txt Build status table from CSV 2023-11-05 14:42:32 +11:00
requirements.txt Refactor docs 2024-03-18 20:47:33 +11:00
Taskfile.yml Add raw API docs 2023-09-25 20:50:53 +10:00

v3 Docs

This is the documentation for Wails v3. It is currently a work in progress.

If you do not wish to build it locally, it is available online at https://wailsapp.github.io/wails/.

Install the wails3 CLI if you haven't already:

go install github.com/wailsapp/wails/v3/cmd/wails3@latest

The documentation uses mkdocs, so you will need to install Python. Once installed, you can setup the documentation by running the following command:

wails3 task docs:setup

This will install the required dependencies for you.

If you have installed the wails3 CLI, you can run the following command to build the documentation and serve it locally:

wails3 task docs:serve

Manual Setup

To install manually, you will need to do the following:

  • Install Python
  • Run pip install -r requirements.txt to install the required dependencies
  • Run mkdocs serve to serve the documentation locally
  • Run mkdocs build to build the documentation

Contributing

If you would like to contribute to the documentation, please feel free to open a PR!