()
| 177 | } |
| 178 | |
| 179 | func (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 | |
| 190 | func (b *Button) Clicked() *Event { |
| 191 | return b.clickedPublisher.Event() |
nothing calls this directly
no test coverage detected