StopAnimations unregisters every view from the animation coordinator. Call it when the host view goes away (e.g. the embedding dialog closes) so abandoned spinners do not keep the tick stream alive; Rebuild re-arms them on the next open.
()
| 263 | // so abandoned spinners do not keep the tick stream alive; Rebuild re-arms |
| 264 | // them on the next open. |
| 265 | func (t *Transcript) StopAnimations() { |
| 266 | for _, v := range t.views { |
| 267 | animation.StopView(v) |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | // Messages returns the transcript's messages, oldest first. The slice is |
| 272 | // the transcript's own backing store: callers must treat it as read-only |