()
| 1261 | } |
| 1262 | |
| 1263 | func (wb *WindowBase) SaveState() (err error) { |
| 1264 | wb.ForEachDescendant(func(widget Widget) bool { |
| 1265 | if persistable, ok := widget.(Persistable); ok && persistable.Persistent() { |
| 1266 | if err = persistable.SaveState(); err != nil { |
| 1267 | return false |
| 1268 | } |
| 1269 | } |
| 1270 | |
| 1271 | if _, ok := widget.(Container); ok { |
| 1272 | return false |
| 1273 | } |
| 1274 | |
| 1275 | return true |
| 1276 | }) |
| 1277 | |
| 1278 | return |
| 1279 | } |
| 1280 | |
| 1281 | // Form returns the Form of the Window. |
| 1282 | func (wb *WindowBase) Form() Form { |
nothing calls this directly
no test coverage detected