[vlc-commits] [Git][videolan/vlc][master] qml: use `NumberAnimation` instead of `OpacityAnimator` in `PlaylistDelegate`

François Cartegnie (@fcartegnie) gitlab at videolan.org
Fri Apr 3 11:26:14 UTC 2026



François Cartegnie pushed to branch master at VideoLAN / VLC


Commits:
735a853f by Fatih Uzunoglu at 2026-04-03T13:07:22+02:00
qml: use `NumberAnimation` instead of `OpacityAnimator` in `PlaylistDelegate`

If `visible` becomes `false` before `OpacityAnimator`
finishes the animation, the image does not immediately
become invisible.

This is a problem because in case the item is added and
played immediately after, we don't want to have the
animation as it would look like a glitch.

- - - - -


1 changed file:

- modules/gui/qt/playlist/qml/PlaylistDelegate.qml


Changes:

=====================================
modules/gui/qt/playlist/qml/PlaylistDelegate.qml
=====================================
@@ -182,7 +182,8 @@ T.Control {
                 opacity: (status === Image.Ready ? 1.0 : 0.0)
 
                 Behavior on opacity {
-                    OpacityAnimator {
+                    // WARNING: OpacityAnimator is not used because `visible` is not immediately respected in that case.
+                    NumberAnimation {
                         duration: VLCStyle.duration_short
                         easing.type: Easing.InSine
                     }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/735a853f170ed96f0f7e4743399672817f2a0aef

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/735a853f170ed96f0f7e4743399672817f2a0aef
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list