You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix issue: 165: Disable Animations
* refactor: use setIntervalImmediately with 1000ms timer for animation toggle
* refactor: simplify CSS and run prettier formatting
* fix: animations disabled on first launch despite setting being off
Fixed an issue where animations were disabled when the application
first launched, even though the 'Disable Animations' setting was
turned off in the config.
The problem occurred because the animation state check only ran when
there was a change in the setting. On first launch, since the value
remained false (animations enabled), the comparison would be:
lastAnimationState (false) !== currentState (false) = false
This meant updateAnimationClass() was never called initially, leaving
animations disabled by default.
Solution: Initialize lastAnimationState as undefined instead of reading
from config. This ensures the first check always triggers:
lastAnimationState (undefined) !== currentState (false) = true
Now animations are correctly enabled on first launch and can be toggled
by the user in settings as intended.
Resolves#165
0 commit comments