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

Method SaveState

tabwidget.go:193–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191}
192
193func (tw *TabWidget) SaveState() error {
194 tw.WriteState(strconv.Itoa(tw.CurrentIndex()))
195
196 for _, page := range tw.pages.items {
197 if err := page.SaveState(); err != nil {
198 return err
199 }
200 }
201
202 return nil
203}
204
205func (tw *TabWidget) RestoreState() error {
206 state, err := tw.ReadState()

Callers

nothing calls this directly

Calls 3

CurrentIndexMethod · 0.95
WriteStateMethod · 0.80
SaveStateMethod · 0.65

Tested by

no test coverage detected