mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Window event callbacks now take a WindowEventContext
Improved event example
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package application
|
||||
|
||||
var blankWindowEventContext = &WindowEventContext{}
|
||||
|
||||
type WindowEventContext struct {
|
||||
// contains filtered or unexported fields
|
||||
data map[string]any
|
||||
}
|
||||
|
||||
func newWindowEventContext() *Context {
|
||||
return &Context{
|
||||
data: make(map[string]any),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user