[vlc-commits] qml: avoid loop binding of playlist widthFactor

Pierre Lamot git at videolan.org
Thu Sep 10 16:10:27 CEST 2020


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Tue Sep  1 10:25:13 2020 +0200| [478455800feb981aaa9e1563aafa0f6c2fb23cb6] | committer: Pierre Lamot

qml: avoid loop binding of playlist widthFactor

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=478455800feb981aaa9e1563aafa0f6c2fb23cb6
---

 modules/gui/qt/medialibrary/qml/MainDisplay.qml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/medialibrary/qml/MainDisplay.qml b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
index 2c99109102..1b14e17e28 100644
--- a/modules/gui/qt/medialibrary/qml/MainDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
@@ -328,9 +328,12 @@ Widgets.NavigableFocusScope {
                                         atRight: false
                                         targetWidth: playlistColumn.width
                                         sourceWidth: root.width
-                                        widthFactor: mainInterface.playlistWidthFactor
 
                                         onWidthFactorChanged: mainInterface.setPlaylistWidthFactor(widthFactor)
+                                        Component.onCompleted:  {
+                                            //don't bind just provide the initial value, HorizontalResizeHandle.widthFactor updates itself
+                                            widthFactor = mainInterface.playlistWidthFactor
+                                        }
                                     }
                                 }
                             }



More information about the vlc-commits mailing list