MCPcopy
hub / github.com/lxn/walk / RestoreState

Method RestoreState

button.go:179–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177}
178
179func (b *Button) RestoreState() error {
180 s, err := b.ReadState()
181 if err != nil {
182 return err
183 }
184
185 b.SetChecked(s == "true")
186
187 return nil
188}
189
190func (b *Button) Clicked() *Event {
191 return b.clickedPublisher.Event()

Callers

nothing calls this directly

Calls 2

SetCheckedMethod · 0.95
ReadStateMethod · 0.80

Tested by

no test coverage detected