Created attachment 138179 [details] Indefinite progress-bar with animation disabled When animation is set to instant, the indefinite progress-bar acts like crazy. See attached video for more info.
lol, can confirm by running the test with `qmlscene ./tests/components/progressbar3.qml` with animation speed set to instant.
What should the result be if animations are disabled? Easiest fix would be to just stop the animation but that would look like nothing is happening which is wrong
Either : - Disabling animation, and I think current static indeterminate progress looks fine and reflect the fact that loading percentage is not calculable. - Or hacking the animation for progress bar so even if animation is disabled it will shows minimum animation to make it looks better. - Or finding another graphical form to represent better the static indeterminate progress status.
The QStyle's indeterminate indicator looks fine non-animated. Maybe we should replace the Plasma style's animation with that, and then just freeze it when there are no animations.
The animation speed setting is for transitions. Progress bar is not a transition, it is a component in and of itself, and as such should not be affected by that global setting. In past is was using veryLongDuration value, which is subject to scale with the global animation setting. But in commit 416e6853442bd08e6ef25ae040951f56c26455b3 it was changed to humanMoment which is constant 2 seconds.