mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
The application shutdown process has been significantly reworked to be more efficient and robust. The refactored code removes the event listener for the 'ApplicationTerminate' event. Instead, an in-process flag is added to the 'Quit' method to prevent recursive calls. Additionally, an optional 'OnShutdown' function variable is introduced to allow custom cleanup operations upon app termination. |
||
|---|---|---|
| .. | ||
| defaults.go | ||
| events.go | ||
| events.h | ||
| events.txt | ||
| events_darwin.go | ||
| events_darwin.h | ||
| README.md | ||
Events
This package is used to generate the event management code and to allow quick addition of events.
Usage
- Add events to
events.txt - Run
task generate:events
Notes
For events that you want to handle manually, add a ! to the end of the event name and
add custom code into the appropriate platform. See this PR
for an example of how to do this.