MCPcopy Create free account
hub / github.com/lxn/walk / SaveState

Method SaveState

button.go:175–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173}
174
175func (b *Button) SaveState() error {
176 return b.WriteState(fmt.Sprintf("%t", b.Checked()))
177}
178
179func (b *Button) RestoreState() error {
180 s, err := b.ReadState()

Callers

nothing calls this directly

Calls 2

CheckedMethod · 0.95
WriteStateMethod · 0.80

Tested by

no test coverage detected