[vlc-devel] [PATCH 2/8] qml: avoid loop binding of playlist widthFactor

Pierre Lamot pierre at videolabs.io
Tue Sep 1 18:32:04 CEST 2020


---
 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 bd034041b0..ac798eacd2 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
+                                        }
                                     }
                                 }
                             }
-- 
2.25.1



More information about the vlc-devel mailing list