From 4042e027bb5c148a046bcad8bf2496d9b75839a6 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Sun, 29 Dec 2024 08:26:44 -0800 Subject: [PATCH] Reorder functions --- animation.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/animation.go b/animation.go index 1655edb66c..f27c9bfaa4 100644 --- a/animation.go +++ b/animation.go @@ -77,17 +77,17 @@ func (a *Animation) Start() { CurrentApp().Driver().StartAnimation(a) } +// Stop will end this animation and remove it from the run-loop. +func (a *Animation) Stop() { + CurrentApp().Driver().StopAnimation(a) +} + // Start registers the animation with the application run-loop and starts its execution. func (i *IndefiniteAnimation) Start() { i.setupAnimation() i.animation.Start() } -// Stop will end this animation and remove it from the run-loop. -func (a *Animation) Stop() { - CurrentApp().Driver().StopAnimation(a) -} - // Stop will end this animation and remove it from the run-loop. func (i *IndefiniteAnimation) Stop() { i.setupAnimation()