Misc fixes for events

This commit is contained in:
Lea Anthony
2020-10-03 15:03:14 +10:00
parent 7f9c59a021
commit ae677ce9db
5 changed files with 31 additions and 20 deletions

View File

@@ -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
}