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

Method ReadState

window.go:2096–2104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2094}
2095
2096func (wb *WindowBase) ReadState() (string, error) {
2097 settings := App().Settings()
2098 if settings == nil {
2099 return "", newError("App().Settings() must not be nil")
2100 }
2101
2102 state, _ := settings.Get(wb.path())
2103 return state, nil
2104}
2105
2106func (wb *WindowBase) WriteState(state string) error {
2107 settings := App().Settings()

Callers 9

RestoreStateMethod · 0.80
RestoreStateMethod · 0.80
RestoreStateMethod · 0.80
RestoreStateMethod · 0.80
ShowMethod · 0.80
RestoreStateMethod · 0.80
RestoreStateMethod · 0.80
RestoreStateMethod · 0.80
RestoreStateMethod · 0.80

Calls 5

pathMethod · 0.95
AppFunction · 0.85
newErrorFunction · 0.85
SettingsMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected