mirror of
https://github.com/taigrr/wails.git
synced 2026-04-15 19:30:49 -07:00
Major updates
Automatic type conversion Support struct data Custom error handler
This commit is contained in:
@@ -15,8 +15,7 @@ type Counter struct {
|
||||
// WailsInit is called when the component is being initialised
|
||||
func (c *Counter) WailsInit(runtime *wails.Runtime) error {
|
||||
c.r = runtime
|
||||
c.store = runtime.Store.New("Counter")
|
||||
c.store.Set(0)
|
||||
c.store = runtime.Store.New("Counter", 0)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user