mirror of
https://github.com/taigrr/wails.git
synced 2026-04-17 04:05:12 -07:00
Misc fixes for events
This commit is contained in:
@@ -23,6 +23,9 @@ func (r *RuntimeTest) WailsInit(runtime *wails.Runtime) error {
|
||||
r.runtime.Events.On("testevent", func(optionalParams ...interface{}) {
|
||||
println("Wooohoooo! I got called!")
|
||||
})
|
||||
r.runtime.Events.Once("testeventonce", func(optionalParams ...interface{}) {
|
||||
println("I only get called once!")
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user